Combining toolbar look/functionality in wx.Menubar

Chris Lafferty wrote:

Hello,

I’ve been researching this in the PIA book and the forums/wiki but haven’t seen anything to this effect yet.

I have a client (private contract) who drew up their UI in Visio and this (see attachment) is what they’re expecting.

You’ll notice in the menubar the toolbar-like buttons. Is this at all possible in the current release of wxPython?

The native menubar can't do that, and wx doesn't support using the win32 rebar controls yet which probably would allow it... You might want to try using Andrea's FlatMenu instead of the native menus, then the menubar would be a generic widget and you could probably put some bitmap buttons on it like with any other window.

···

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

Hi Chris and All,

Chris Lafferty wrote:
> Hello,
>
>
>
> I've been researching this in the PIA book and the forums/wiki but
> haven't seen anything to this effect yet.
>
>
>
> I have a client (private contract) who drew up their UI in Visio and
> this (see attachment) is what they're expecting.
>
> You'll notice in the menubar the toolbar-like buttons. Is this at all
> possible in the current release of wxPython?
>

The native menubar can't do that, and wx doesn't support using the win32
rebar controls yet which probably would allow it... You might want to
try using Andrea's FlatMenu instead of the native menus, then the
menubar would be a generic widget and you could probably put some bitmap
buttons on it like with any other window.

Yes, probably this is the way to go. You could also create your own
toolbar-like control and then add FlatMenu and your toolbar to an
horizontal box sizer, embedded in a vertical box sizer which is
assigned to the main frame/panel, in order to leave your custom menu
bar at the top. Or you could place your FlatMenu/toolbar combination
using wx.AUI (which is what I usually do).
For the FlatMenu sources, please see my website:

http://xoomer.alice.it/infinity77/main/freeware.html#flatmenu

I have no idea if it works on Mac, but I strongly doubt about it (BTW,
does anyone know which is the status of wx.PopupMenu on the Mac?)

HTH.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Jan 14, 2008 9:40 PM, Robin Dunn wrote: