It can be a push, toggle or radio button, or a vertical or horizontal separator or a break.
Push buttons act like normal dialog buttons. You click them, they send a message. Toggle buttons change flip state every time they are clicked. Each time sending a message. Radio buttons only allow one button to be down between separators.
![]() |
class GToolButton : public GView { public: // _Constructor GToolButton(int Bx, int By) // Data int GetType() int Image() int Value() void Image(int I) void SetType(int Type) void Value(int I) // Impl virtual bool GetDimension(int &x, int &y) }; |
Argument | Description |
int Bx | Width of the button |
int By | Height of the button |
Constructs the control
Gets this button's type, can be:
Returns this control's icon index
Returns the state of the control, true if pressed / down.
Argument | Description |
int I |
Sets this controls icon index
Argument | Description |
int Type | The new type. |
Sets this button's type, can be:
Argument | Description |
int I | New state |
Sets the control's down state.
Argument | Description |
int &x | Return the desired width. |
int &y | Return the desired height. |
Override this to return a custom calculated dimension during the GToolBar's pour.