Page 1 of 1

windows menu bug

Posted: Sun Oct 25, 2015 8:50 pm
by lazi
Hi!

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
                 

Re: windows menu bug

Posted: Sat Oct 31, 2015 6:10 pm
by airsoftsoftwair
Yes, I can confirm this behaviour. Will be fixed.

Re: windows menu bug

Posted: Mon Feb 22, 2016 6:29 pm
by airsoftsoftwair
Fixed.