Button State Properties |
The Auto property sets or gets a value that determines whether the Button handles its state. Note that this is different from the Enabled property, see below.
bMode = Button.Auto
Button.Auto = bMode
Element |
Description |
---|---|
bMode |
True indicates that the Button handles its state automatically; false indicates that the state must be handled manually with event handlers. |
The ButtonID property sets or gets a number that is used as reference when control is part of a radio button group.
intID = Button.ButtonID
Button.ButtonID = intID
Element |
Description |
---|---|
intID |
Integer that is used to reference control in radio button group. |
The ButtonStyle property sets or gets a number that determines the style of the Button. This property can be set from Properties pages.
intStyle = Button.ButtonStyle
Button.ButtonStyle = intStyle
Element |
Description |
intStyle |
Number that defines the style of the Button: either default check box (1), push button (0), or radio button (2). |
The Check property sets or gets a value that determines the checked state of the Button. The Check property of the Button is commonly queried after the Click event. This property is only applicable to check boxes and radio buttons.
bMode = Button.Check
Button.Check = bMode
Element |
Description |
---|---|
bMode |
True indicates that the radio button is selected or check box is checked; false indicates that it is unchecked. |
The Enabled property sets or gets a value that determines whether an object can respond to user-generated events. If the Button is disabled, it can not receive user events. This property is equivalent to right-clicking on the Button and choosing Disable Evaluation.
bMode= Button.Enabled
Button.Enabled = bMode
Element |
Description |
bMode |
True indicates that Button receives events; false indicates that it does not. |
The GroupID property sets or gets a number that is used to identify a group of radio buttons. This property is only useful for radio buttons.
intID = Button.GroupID
Button.GroupID = intID
Element |
Description |
intID |
Integer that is used to refer to a group of radio buttons. |