windows menu bug

Report any Hollywood bugs here
Post Reply
User avatar
lazi
Posts: 625
Joined: Thu Feb 24, 2011 11:08 pm

windows menu bug

Post 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
                 
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: windows menu bug

Post by airsoftsoftwair »

Yes, I can confirm this behaviour. Will be fixed.
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: windows menu bug

Post by airsoftsoftwair »

Fixed.
Post Reply