[wx-dev] Changes to wxToolBar on Mac

Stefan Csomor csomor at advancedconcepts.ch
Wed Jun 20 07:37:57 PDT 2007


Hi Julian

I'd prefer making it work correctly, so you are creating a toolbar without setting it as a SetToolBar on the frame, and nothing works, or just embedded controls ?

Thanks,

STefan

> -----Original Message-----
> From: Julian Smart [mailto:julian at anthemion.co.uk]
> Sent: Mittwoch, 20. Juni 2007 16:18
> To: wx-dev at lists.wxwidgets.org
> Subject: [wx-dev] Changes to wxToolBar on Mac
>
> Hi,
>
> I've just made some small changes to wxToolBar on Mac. The problem
> was
> that in wxMAC_USE_NATIVE_TOOLBAR mode (as set in
> include/wx/mac/carbon/chkconf.h), only the single toolbar that is
> installed in the frame with CreateToolBar or SetToolBar worked
> correctly. For all other non-installed toolbars, controls didn't show
> up. So I've added some tests to _not_ attempt to create a native
> toolbar
> if either the parent is not a frame, or the system option
> mac.toolbar.no-native is set to 1. Mostly this will be automatic when
> toolbars are parented on a non-frame, but when creating a secondary
> toolbar on a frame (and controls are required), the system option
> should
> be used before toolbar creation.
>
> The rest of the change is to do the equivalent of
> wxMAC_USE_NATIVE_TOOLBAR, only dynamically, to fix the control
> behaviour.
>
> If this is OK, I'll add a note in the wxToolBar documentation about
> it.
>
> Thanks,
>
> Julian
>
> --
> Julian Smart, Anthemion Software Ltd.
> 28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
> www.anthemion.co.uk | +44 (0)131 229 5306
> Tools for writers: www.writerscafe.co.uk
> wxWidgets RAD:     www.anthemion.co.uk/dialogblocks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-dev-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-dev-help at lists.wxwidgets.org





More information about the wx-dev mailing list