alternetsoft / AlternetUI

MIT License
24 stars 2 forks source link

Toolbar related issues #38

Closed generalloki closed 11 months ago

generalloki commented 1 year ago

Here are current Toolbar related issues:

generalloki commented 1 year 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)

generalloki commented 1 year ago

Also:

generalloki commented 1 year ago

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.

generalloki commented 1 year ago

ImageSet.FromUrl and Image.FromUrl need to have memory cache for loaded images

generalloki commented 1 year ago

Problems with custom toolbars:

generalloki commented 1 year ago

Currently custom toolbars were disabled. Now only possible to set toolbar to the form (on top, right, bottom or left).

generalloki commented 11 months ago

As we implemented AuiToolbars and marked Toolbar as deprecated, this issue is closed.