Encore SIM EDITOR SOFTWARE Guide de l'utilisateur Page 254

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 449
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 253
8-18
Interactive Window
The title displayed in the User-Defined Button area is Control Buttons.
It has two columns of buttons and the title text uses the color White
Smoke. The label, numcolumns, and foreground are all options. If
unspecified, the following defaults are used:
label = same as section name
numcolumns = 1
foreground = default foreground in X Resource file
The individual options are separated by commas, and the entire
section definition is terminated with a semicolon.
Note:
In X Resource files, if the color specified has embedded spaces,
it is necessary to enclose the color in double quotes.
Defining a Button
The following is an example of a button definition:
# Uses red for foreground and black for background
define button Control
label "Save",
command "$save("saved.exe")",
foreground "Red",
background "Black";
The above definition creates a user defined button in the Control
section. The button label is Save. When the button is pressed, the
command $save("saved.exe") is sent to the simulator. The
button foreground is red and the background is black.
The label and command options are required; the foreground and
background are optional. If alternative settings are not specified, the
options use the default window settings.
Vue de la page 253
1 2 ... 249 250 251 252 253 254 255 256 257 258 259 ... 448 449

Commentaires sur ces manuels

Pas de commentaire