Palettes are occupied by an array of palette buttons. A palette button has the following attributes which are adjustable via the “Edit/Properties” option:
Reference (Field) name, Id -- Any button added to the palette can be accessed from inside an application by specifying a "Reference" or "Field" name and/or "Id". For SIMSCRIPT II.5 users, the field name is passed to the callback routine whenever the button is clicked on.
Icon name – The name of the bitmap resource or file (without extension) icon displayed on the front of the palette button. Pressing the small browser “..” button next to this text box will allow you to browse the file system to select a bitmap file name. Remember that the bitmap file MUST be in the same directory as your library (.sg2) file.
Status message – Text displayed in pane 0 of the parent window’s status bar (if present) whenever the pointer passes over this button.
Tool tip – Identifies the tool tip popup message shown at the pointer’s current location when it passes over this button
Momentary/Draggable/Toggle – Determines the variety of input interaction. One of three button types can be selected:
1 Momentary – Button will automatically pop back up after it is pressed.
2 Toggle -- Two state button. The state (up or down) alternates with each activation.
3 Draggable – Like “Toggle” but allows you to hold the mouse button down and drag an outline of the palette button bitmap onto the window.
Icon button/Color button – If the “Icon button” option is activated, the face of the palette button will show the bitmap defined by the “Icon name” field above. For “color buttons” the button will be colored using the R,G,B parameters defined below.
Button face color (Red,Green,Blue) – You can set the color of the “color buttons” through these value boxes. Color is defined by the percentage of Red, Green, and Blue (range [0-100]).
See Also
Selecting and Moving (Rearrangement) of Palette Buttons