A SERVICE OF

logo

TState state = Up,
BOOL repeat = FALSE);
where:
bmpResId is the resource identifier for the bitmap to be displayed in the
button. The size of the bitmap determines the size of the gadget, because
shrink wrapping is turned on.
id is the gadget identifier This is also the command that is posted when.
the gadget is pressed.
type specifies the type of the gadget. The TT pe enum has three possibley
values:
Command specifies that the gadget is a command,
Exclusive specifies that the gadget is an exclusive setting button.
Exclusive button gadgets that are adjacent to each other work together.
Y u can set up exclusive groups by inserting other gadgets, such aso
separator gadgets or text gadgets, on either side of the group.
NonExclusive specifies that the gadget is a nonexclusive setting button.
enabled specifies whether the button gadget is enabled or not when it is
first created. If the corresponding command is enabled when the gadget
is created, the button is automatically enabled.
state is the default state of the button gadget. The enum TState can have
three values: Up, Down, or Indeterminate.
repeat indicates whether the button repeats when held down. If repeat is
TRUE, the button repeats when it is clicked and held.
The ~TButtonGadget function deletes the bitmap resources and, if the
resource information is contained in a string, deletes the storage for the
string.
There are a number of functions you can use to access a button gadget.
Accessing button
These functions let you set the state of the gadget to any valid TState value,
gadget information
get the state of the button gadget, and get the button gadget type.
Y u can set the button gadget’ state with the SetButtonState function:o s
void SetButtonState(TState);
Y u can find the button gadget’ current state using the GetButtonStateo s
function:
TState GetButtonState();
Y u can find out what type of button a gadget is using the GetButtonT peo y
function:
264
OWL P ogrammer’ Guider s