Parameter
|
Description |
btnNum |
An ID number that you assign when you create the button and that you refer to when altering or closing the button. The number you assign must be different from the btnNum of all other existing buttons, scroll bars and edit fields in the current window. |
state |
Sets the state of the button. See button function for details. |
title$ |
The text that appears inside the button (in the case of push buttons) or to the right of the button (in the case of checkboxes and radio buttons). |
btnRect |
The button's enclosing rectangle. This can be specified in either of two ways:
(x1,y1)-(x2,y2) Coordinates of two diagonally opposite points
@rectAddr& Address of an 8 byte rectangle structure. |
btnType |
Specifies the type of button:
_push (1) push button (default type)
_checkBox (2) check box
_radio (3) radio button
_shadow (4) framed push button
If you add the constant _useWFont to any of the above types (except _shadow ) the button's title will be drawn using the window's current font ID, font size, and font style. Any subsequent change you make to the window fontID, font size, or font style will be reflected in the button's title when it is redrawn. If you don't specify _useWFont (or if the button type is _shadow ) the title is drawn using the system font.
|