SuivantPrec.Bas prec.BasNiv. sup.

4.8 Add a button to a toolbar 

You can add a button to any toolbar, with one of the methods indicated in the documentation of assistant AsTeX (button Assist.  AsTeX of the ../../../icones/rosetta/calfor01.gif toolbar). As an exercise, let's add a button (a+b)^2 to the Jacal toolbar just before the button factor (Fig. 7.7) by copying / pasting from the button of Pari then adapting the syntax  :
  1.  Open the group of toolbars Alg-2 then the toolbar Alg\Pari.
  2.  Open the box of options of the assistant by clicking on ../../../images/assist/heart01.gif and select the tab Toolbar.
  3.  Click on the button (a+b)^2 of the Pari toolbar, then on the button Copier of the box of options of the assistant, in order to copy the button (a+b)^2 into the assistant's clipboard.
  4.  Open the group of toolbars Alg-1 then the toolbar of Jacal.
  5.  Click on the button factor of this toolbar to select the place where to paste the button.
  6.  Click on the button Coller (Paste) of the box of options of the assistant, to paste the button (a+b)^2 to the selected place, over the button factor .
  7.  Click on the button 1+2 , and select with the mouse everything that follows the 2, in the field Commande envoyée (Command sent) (i.e. the chain ;{ENTER}^{ENTER} that is required to finish a command of Jacal), and copy it with the right button of the mouse in the clipboard of Windows.
  8.  Click on the button (a+b)^2 and select, in the field Commande envoyée of the box of options, everything that follows the 2 (i.e. the chain {ENTER}^c^c that is required to finish a command of Pari). Replace it with the end of command of Jacal, by clicking with the right button of the mouse on the selected chain and then by clicking on the option Coller (Paste) of the floating menu of edition.
  9.  Save the new button by clicking on the button Sauver of the box of options of the assistant.
  10.  Close the box of options, launch Jacal in a shell of Emacs and test the new button.
  11.  Quit Jacal by clicking on the button Quitter of the toolbar of Jacal, then close Emacs with its option File /  Exit Emacs.

SuivantPrec.Bas prec.HautNiv. sup.