[wxMac] wxToolbar and wxChoice / wxComboBox not playing nicely?
Eran Ifrah
eran.ifrah at gmail.com
Thu Dec 20 12:38:39 PST 2007
Hi,
I am currently porting my project to Mac OSX. My application contains
several toolbars, some of them contains wChoice and wxComboBox.
On Windows & Linux these controls shows up as expected while on OSX, I get
all the toolbar buttons as expected but instead of the wxComboBox &
wxChoice, I get empty area.
The wxToolBars are maintained by wxAUI manager.
here is the code that I am using to add the controls (this code is called
inside the main frame initialization function):
wxToolBar *tb =3D new wxToolBar(this, wxID_ANY, wxDefaultPosition,
wxDefaultSize, wxTB_FLAT | wxTB_NODIVIDER);
wxArrayString choices;
m_workspaceConfig =3D new wxComboBox(tb, wxID_ANY, wxEmptyString,
wxDefaultPosition, wxDefaultSize, choices, wxCB_READONLY);
m_workspaceConfig->Enable(false);
tb->AddControl(m_workspaceConfig);
...
tb->Realize();
info =3D wxAuiPaneInfo();
m_mgr.AddPane(tb, info.Name
(wxT("BuildToolbar")).LeftDockable(true).RightDockable(true).Caption(wxT("B=
uild")).ToolbarPane().Top().Row(1));
Please note that this exact code works fine on Linux & Windows
OS: OS X 10.4.10 PPC
WX: Unicode multilib, dynamic library 2.8.6
Any help is appreciated.
-- =
Eran Ifrah
eran.ifrah at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20071220/e26=
c240a/attachment.htm
More information about the wx-users
mailing list