Mac Drawers for wxDialog

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
Post Reply
kshitij_ds
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 205
Joined: Wed Jun 25, 2008 3:37 pm

Mac Drawers for wxDialog

Post by kshitij_ds » Mon Jun 28, 2010 9:02 pm

Hi,
I have seen the link on the forum that mentions something about using Drawers for dialogs on MAC. However, i haven't been able to find any sample code.
Does anyone know, how to implement drawers?

TIA.

kshitij_ds
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 205
Joined: Wed Jun 25, 2008 3:37 pm

Post by kshitij_ds » Wed Jun 30, 2010 3:09 pm

Okay, i was able to create a Drawer using the header provided at /include/wx/mac/carbon/drawer.h.
However, i am unable to add control to it.

I added a wxFlexGridSizer (with 2 rows and 1 column) and added and tree control to the wxFlexGridSizer.
However, it does not seem to add the sizer/controls and instead the wxStdDialogButtonSizer on parent dialog is removed.

Can any one throuw some light on it? A sample will be appreciated!

Post Reply