wxAuiToolbars are not floatable Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
elMiro
Knows some wx things
Knows some wx things
Posts: 41
Joined: Mon Apr 18, 2005 10:03 pm

wxAuiToolbars are not floatable

Post by elMiro »

I have arranged two wxAuiToolbars at the top of an application main frame. Each at its own row. Both have the same pane info settings except for the row.
I was wondering why both toolbars cannot be moved outside of the frame even though both have the 'Floatable' property set.

Settings of the first toolbar:

Code: Select all

m_AuiManager.AddPane(m_Toolbar, wxAuiPaneInfo().
  Name("toolbar").Caption("Main Toolbar").
  ToolbarPane().Top().Row(0).Dockable().Floatable().Resizable()
);
Settings of the second toolbar:

Code: Select all

m_AuiManager.AddPane(m_Dragbar, wxAuiPaneInfo().
  Name("dragbar").Caption("Dragbar").
  ToolbarPane().Top().Row(1).Dockable().Floatable().Resizable()
);
If the 'Resizable' property is removed from either toolbar, both can be detached and used as floating elements outside of the main frame.
Are there any properties that are mutually exclusive?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxAuiToolbars are not floatable

Post by ONEEYEMAN »

Hi,
Is auidemo sample works for you?

Thank you.
elMiro
Knows some wx things
Knows some wx things
Posts: 41
Joined: Mon Apr 18, 2005 10:03 pm

Re: wxAuiToolbars are not floatable

Post by elMiro »

The auidemo shows the same behavior with some modifications to the toolbar panes.
The problem appears when all toolbar panes are initally created with the property "Resizable".
If during runtime the "Resizable" property is unset the toolbars become floatable, if the floatable property is set as well.
They even remain floatable if the "Resizable" property is set again for all toolbars.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxAuiToolbars are not floatable

Post by ONEEYEMAN »

Hi,
What's your wx version?
What OS?
Can you try to trace it thru the code and see where it fails?
If npot - you should probably file a ticket at trac.wxwidgets.org (requires registration and approval).

Thank you.
elMiro
Knows some wx things
Knows some wx things
Posts: 41
Joined: Mon Apr 18, 2005 10:03 pm

Re: wxAuiToolbars are not floatable

Post by elMiro »

Thank you for your feedback. I submitted a ticket.
Post Reply