SuivantPrec.Bas prec.BasNiv. sup.

4.7 Modify a button of a toolbar 

You can modify a button of an any toolbar by refering to the documentation of assistant AsTeX (button Assist.  AsTeX of the ../../../icones/rosetta/calfor01.gif toolbar). As an exercise, let's change the button a+b^2 of Pari (Fig. 8.3) in a+b^12 :
  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.  Select the button (a+b)^2 of the Pari toolbar by clicking on it.
  4.  Duplicate it by clicking on the button Dupliquer of the box of options, in order to keep a copy of the original.
  5.  Replace 2 by 12 in the fields Nom (Name) and Commande envoyée (Command sent) of the box of options of the assistant.
  6.  Click on the button Sauver (Save) of the box of options, then on its closing button .
  7.  Launch Pari in a shell of Emacs with EMACS/ast and Epari , then click on the modified button (a+b)^12 . The development of (a + b)12 appears in the window of Emacs.
  8.  To finish, destroy the modified button while clicking on Supprimer (Delete) in the box of options of the assistant, and close the box of options by clicking on its closing button .
  9.  Click on the button Quitter to leave Pari and close Emacs with the option File / Exit Emacs.

As long as you didn't modify a toolbar, its file of definitions is read on the CD-ROM, in the directory ROSETBAS\astex\assist\alg for the toolbars about computer algebra. When you click on the button Sauver, (Save) the file of definitions is saved on the hard disk, in the directory ASTEXDIR\assist\alg. From then on, it is this file that is used to read the definitions of the toolbar. If you wish to reset the toolbar, just destroy this file.

Remark  : if you want to modify a complete toolbar under editor, from the button Éditer boutons (Edit buttons) (tab Panneau (Toolbar) of the dialog box Options) of the assistant, you must click beforehand on the button Sauver (Save) of this same toolbar, the first time that you modify it (after that, it is no more necessary, of course).

SuivantPrec.Bas prec.HautNiv. sup.