OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Buttons (sometimes called pushbuttons or command buttons) perform a task each time the button is pressed.
There are two kinds of buttons: default buttons and non-default buttons. A default button, distinguished by the button style BS_DEFPUSHBUTTON, has a bold border that indicates the default user response. Non-default buttons have the button style BS_PUSHBUTTON.
One of TButton's constructors takes the seven parameters commonly found in a control object constructor (a parent window, a resource identifier, the control's x, y, h, and w dimensions, and an optional module pointer), plus a text string that specifies the button's label, and a bool flag that indicates whether the button should be a default button. Here is the constructor declaration:
A typical button would be constructed like this: