To do this, set the msw.remap system option before creating the toolbar:Ĭategory: Miscellaneous Windows See also Toolbar Overview If you use more than 16 colours in your tool bitmaps, you may wish to suppress this behaviour, otherwise system colours in your bitmaps will inadvertently be mapped to system colours. WxMSW note: Note that under wxMSW toolbar paints tools to reflect system-wide colours. Calls to wxToolBarToolBase methods (undocumented by purpose) will not change the visible state of the item within the tool bar.Īfter you have added all the tools you need, you must call Realize() to effectively construct and display the toolbar. Changes to the item's state should be made through calls to wxToolBar methods, for example wxToolBar::EnableTool. This should be regarded as an opaque handle representing the newly added toolbar item, providing access to its id and position within the toolbar. Note that many methods in wxToolBar such as wxToolBar::AddTool return a wxToolBarToolBase* object. These types are controlled by the wxItemKind enumeration. There are several different types of tools you can add to a toolbar.
Where you manage your own toolbars, create wxToolBar as usual.
Under Pocket PC, you should always use this function for creating the toolbar to be managed by the frame, so that wxWidgets can use a combined menubar and toolbar. You may create a toolbar that is managed by a frame calling wxFrame::CreateToolBar(). A toolbar is a bar of buttons and/or other controls usually placed below the menu bar in a wxFrame.