[wxPython-users] Re: MenuBar and Mouse Motion Events
Robin Dunn
robin at alldunn.com
Mon Dec 31 15:46:12 PST 2007
Dominik wrote:
> Stef Mientki <s.mientki <at> ru.nl> writes:
>
>
>> If you don't have a captionbar on your form,
>> it's common to use every free point of the form to drag the form around,
>> so that's even the menubar excluded.
>> Unfortunately I don't know how it's done in Python (have done it in Delphi)
>>
>> btw Why don't you want a captionbar ?
>>
>> cheers,
>> Stef
>>
>
> I know how to make it in other GUI toolkits (e.g. MFC, SWT), but I wanted
> to do it in python and wxwidgets. I know how to make form be moved by
> dragging but it doesn't work for menu bar - the rest of the form space
> works perfect.
> I don't want a captionbar because I try to reduce the size of screen taken
> by my app to minimum. I would be very grateful if some wxpython expert
> could show me how to do it ;-)
I doubt that it can be done with the native menubar, since wx treats it
more like a part of the frame rather than an independent widget. (An on
OS X of course it is not even part of the frame, but shared with all the
running apps...) You might want to try Andrea's FlatMenu however, as it
is a generic widget so you should be able to intercept mouse events from
it. http://xoomer.alice.it/infinity77/main/FlatMenu.html
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list