News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

AuiToolbar in wxSmith without DefaultPane()

Started by danselmi, April 25, 2013, 09:28:38 PM

Previous topic - Next topic

danselmi

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:
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
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]

danselmi

So it is really a bug in wxSmith. It came with rev. 8765.
Corrected in rev. 9009.

spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]