Windows 7 (others not tested).
When a SetDisplayAttributes({menu=-1}) command is executed, the menu is disappears and the top of the window is moving down to resize the window to the desired size. The problem is if the menu is again attached eg: SetDisplayAttributes({menu=2}) the window content is moving down, so the bottom border is going downward. Turning the menu on/off several times makes the window crawling down on the screen.
It would be better if the menu removal can move up the window content and leave the title bar in place.
To try it out:
Code: Select all
@DISPLAY {title="menubug",fillstyle=#FILLCOLOR,color=#WHITE,width=915, height=500,sizeable=True}
CreateMenu(2,{
{"Project", {
{"Open drawer...", ID="proj_open"},
{"Reload drawer", ID="proj_reload"},
{"About", ID="proj_about"},
{"Quit", ID="proj_quit" },
}}})
Repeat
SetDisplayAttributes({menu=2})
WaitLeftMouse
SetDisplayAttributes({menu=-1})
WaitLeftMouse
Forever