Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Instead wxToolBar by wxAuiToolBar ?
eranif:
Instead of replacing wxToolBar with wxAUIToolBar, you could inherit from wxAuiDefaultToolBarArt and override the method:
--- Code: ---virtual void DrawGripper( wxDC& dc, wxWindow* wnd, const wxRect& rect);
--- End code ---
This will remove the 'ugliness' of the wxToolBar. You should also remember that wxAuiToolBar does not look native on the various themes of Ubuntu (especially the dark ones)
Eran
Loaden:
--- Quote from: jens on September 24, 2010, 10:42:12 am ---Creating an xrc-handler should not be too hard, I will try it, if I find the time.
--- End quote ---
If it is not easy, I think we can give up xrc, just only C++ code instead?
Loaden:
--- Quote from: eranif on September 24, 2010, 01:59:36 pm ---Instead of replacing wxToolBar with wxAUIToolBar, you could inherit from wxAuiDefaultToolBarArt and override the method:
--- Code: ---virtual void DrawGripper( wxDC& dc, wxWindow* wnd, const wxRect& rect);
--- End code ---
This will remove the 'ugliness' of the wxToolBar. You should also remember that wxAuiToolBar does not look native on the various themes of Ubuntu (especially the dark ones)
Eran
--- End quote ---
Thank to eranif!
ironhead:
Could this be extended to Windows as well? The toolbars look OK in WinXP, but look ugly under Win7 (similar to the Ubuntu screenshots).
I noticed the SVN change was limited to Linux only...
Loaden:
--- Quote from: ironhead on November 08, 2010, 07:27:58 pm ---Could this be extended to Windows as well? The toolbars look OK in WinXP, but look ugly under Win7 (similar to the Ubuntu screenshots).
I noticed the SVN change was limited to Linux only...
--- End quote ---
No, the SVN change just for status bar.
In Linux, the status bar is very ugly, and not the default show like other GTK2 applications.
So, I'm set the style to wxSB_FLAT, it's looks better than before.
Maybe we can find another way?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version