BUTTON dialog element
Syntax
DIALOG ADD,BUTTON,<name>,<top>,<left>,<width>,<height>,<caption>,<tooltip>,<styles>
Description
This dialog element creates a button at the position and size specified. When the button is pressed, it will cause a<name>BUTTON event.
By default, the name is used as the caption for the button. This can be changed by specifying a <caption>. To create a keyboard shortcut for a button, place an '&' character before one letter of the caption. If the program is compiled without an XP manifest, you will see an underline below that letter. To use the shortcut, hold down Alt and press that letter.
If button is called CANCEL, a CANCELBUTTON event will occur when the Esc key is pressed, as well as when the button is clicked.
If button is called HELP, a HELPBUTTON event will occur when the F1 key is pressed, as well as when the button is clicked.
Styles
In addition to user-defined styles to change the default font style and color, the following styles may be used with this dialog element:
| DEFAULT | Makes this button the default action for the dialog. A <name>BUTTON event is generated if the user presses the Enter key. |
| MOUSEOVER | The element will generate a <name>ENTER event when the mouse enters the boundary of the dialog element, and a <name>LEAVE event when the mouse leaves the boundary. |
| <cursor style> | The cursor will change to the named style when the pointer is over the dialog element. Valid styles are: NONE, ARROW, CROSS, IBEAM, SIZE, NESW, NS, NWSE, WE, UP, WAIT, DRAG, NODROP, HSPLIT, VSPLIT, MULTI, SQL, NO, HELP, HAND. |