xrc + aui toolbar problem (test attached)

Egor Zindy wrote:

I can still see the real toolbar "placeholder" in my frame and the AUI
managed toolbars appear on the row beneath.

XRC is doing the same as frame.SetToolBar on the toolbars that it loads, so the frame thinks that it is managing the toolbar and is reserving the space for it. Just add a call to self.SetToolBar(None) to tell the frame to not try to manage it.

Other question... I have a <style>wxTB_FLAT|wxTB_NODIVIDER</style> in my
XRC definition of the toolbars, but my application doesn't seem to care
(at least in windows)! Am I doing something wrong?

Your XRC is putting wxBitmapButtons on the toolbar, not toolbar tools.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin,

Robin Dunn wrote:

XRC is doing the same as frame.SetToolBar on the toolbars that it
loads, so the frame thinks that it is managing the toolbar and is
reserving the space for it. Just add a call to self.SetToolBar(None)
to tell the frame to not try to manage it.

Thank you! Yes, that did the trick.

Other question... I have a <style>wxTB_FLAT|wxTB_NODIVIDER</style> in my
XRC definition of the toolbars, but my application doesn't seem to care
(at least in windows)! Am I doing something wrong?

Your XRC is putting wxBitmapButtons on the toolbar, not toolbar tools.

Yup, all I had to do was to change class="wxBitmapButtons" to
class="tool" in my wxToolBar object.

I attached the corrected example in case it helps someone else.

Regards,
Egor

test.py (2.56 KB)