Closed generalloki closed 11 months ago
Check this MSW note: wxMSW note: Note that under wxMSW toolbar paints tools to reflect system-wide colours. 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. To do this, set the msw.remap system option before creating the toolbar:
wxSystemOptions::SetOption("msw.remap", 0); If you wish to use 32-bit images (which include an alpha channel for transparency) use:
wxSystemOptions::SetOption("msw.remap", 2); Then colour remapping is switched off, and a transparent background used. But only use this option under Windows XP with true colour:
if (wxTheApp->GetComCtl32Version() >= 600 && ::wxDisplayDepth() >= 32)
Also:
Also:
Check bitmaps with different sizes in toolbar (not 16x16). As there is wxToolBar::SetToolBitmapSize ( const wxSize & size ) This should be called to tell the toolbar what the tool bitmap size is. Call it before you add tools.
ImageSet.FromUrl and Image.FromUrl need to have memory cache for loaded images
Problems with custom toolbars:
Currently custom toolbars were disabled. Now only possible to set toolbar to the form (on top, right, bottom or left).
As we implemented AuiToolbars and marked Toolbar as deprecated, this issue is closed.
Here are current Toolbar related issues: