Author Topic: AuiToolbar in wxSmith without DefaultPane()  (Read 2887 times)

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 203
AuiToolbar in wxSmith without DefaultPane()
« on: April 25, 2013, 09:28:38 pm »
Hi

Not sure if this is a bug in wxSmith.

To reproduce(C::B svn 2997 on winxp):
  • Create new wxWidgets Project
  • set wxSmith as preferred GUI builder
  • FrameBased
  • In wxSmith add a wxAuiManager to the frame
  • add a wxAuiToolbar to the AuiManager
  • add an item to the toolbarr

The resulting toolbar gets a caption when docked.
The relevant generated code is:
Code
uiManager1->AddPane(AuiToolBar1, wxAuiPaneInfo().Name(_T("PaneName")).ToolbarPane().DefaultPane().Caption(_("Pane caption")).Layer(10).Top().Gripper());
How can a make wxSmith to not generate the call of DefaultPane()?

Thanks for your help in advance.

regards, danselmi

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 203
Re: AuiToolbar in wxSmith without DefaultPane()
« Reply #1 on: April 28, 2013, 06:32:28 pm »
So it is really a bug in wxSmith. It came with rev. 8765.
Corrected in rev. 9009.