wxAuiToolBarItem

From WxWiki
Jump to navigation Jump to search
Official Classes SmallBlocks.png Archive Containers Controls Data Structures Database Date & Time Debug Device Contexts Dialogs Document & Views Drag & Drop Events Filesystem Frames Graphics Grid Cell Help HTML Logging Miscellaneous Networking Printing Sizers Streams Threading Windows

wxAuiToolBarItem is part of the wxAUI class framework, representing a toolbar element.

It has a unique id (except for the separators which always have id = -1), the style (telling whether it is a normal button, separator or a control), the state (toggled or not, enabled or not) and short and long help strings. The default implementations use the short help string for the tooltip text which is popped up when the mouse pointer enters the tool and the long help string for the applications status bar (currently not implemented).

Toggling Visibility

myAuiToolItem->SetState(wxAUI_BUTTON_STATE_HIDDEN);

Is used to set the state of the tool button to hidden.

myAuiToolItem->SetState(wxAUI_BUTTON_STATE_NORMAL);

Is used to set it back to visible again.

See Also