COMBOBOX
[label] CREATE [{parent};]{button}={top}:{bottom}:{left}:{right},{name}:
{property list}...]
ACTIVATE {button},{click-routine},{result}
SETPROP {button},ICON={resource # or image filename}
. . . .
button_click EVENTINFO ZERO: //get info for current event
CHAR=EventChar: //character that caused the event
MODIFIER=EventMod: //modifier key or mouse button clicked
OBJECTID=EventObjID: //event type
RESULT=EventResult: //9 digit #: click type, H, V positions
TYPE=EventType //click, dblclick, etc.
In the above example, {name} is the text that appears on the button. This can include a "hot key" designation using the & character: E&XIT which is visually presented as EXIT.
Buttons normally have TEXT associated with them. The text can use various properties and fonts to be visually effective. Buttons do NOT have background or foreground color properties.
Buttons can also have IMAGES on them and work much like ICONS.
When you use an image you have to do a SETPROP ICON={resource # or image filename}. BMP and GIF image files seem to work. Others might too.
|
Numbers 1,2,3 were created from our own icon files using the RESOURCES tool in the Designer. Resource 100 and the series from 10020 to 10143 were provided automatically by PLBWIN.
Display created by UTIL-PLB\RESOURCE.PLS |