Menubar on Windows???

Eric Chatonet eric.chatonet at sosmartsoftware.com
Wed Dec 12 09:16:28 EST 2007


Hi Dave,

Le 12 déc. 07 à 14:29, Dave a écrit :

> Hi,
>
> Yes, but HOW do you designate the "menubar"????? According to the  
> Docs, the "menubar" property is only used on the Mac.
>
> What if I have more than one menubar that I want to switch  
> depending on context, how do I remove one and add the other as the  
> Menubar to use???
>
> Thanks a lot
> All the Best
> Dave

On Win, a menu bar is IN the window: as many menu bars as there are  
windows (same or not).
On Mac there is a SINGLE menu bar at the top of the screen and, of  
course, it's useful to be able to associate it with the top window.
As you have read it, it's the reason why menubar and defaultmenubar  
properties are Mac ONLY.

According to the guide lines, menu names and contents should not  
change FOR the same window, on Win or Mac.
On the other hand, you can enable/disable, check mark, etc. any item  
in a menu at mouseDown to take the current environment into account.
That's what guide lines allow.

But if you 'really' want to display different menu bars in the same  
window when running Windows, just create as many menu bars as needed  
and show/hide the right corresponding group according to your needs.

But I repeat: this is not compliant with Win guide lines :-)
And the user might be confused.

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list