Menu and iconify window under Windows

Report any Hollywood bugs here
Post Reply
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Menu and iconify window under Windows

Post by Juan Carlos »

This problem I spoke about it, now here is the example, when you use the menu and iconify the window the second or third time the content, for example one or several brushes disappear, again you try to show the brush iconify the window but the problem continues.

Code: Select all

@BRUSH 300, "Amiga500.jpg", {Loader="inbuilt"} ;Here you can test with other picture.
@MENU 1,
{
    {"Menu Test",
      {
	{"Empezar...", ID = "start"},
	{"Parar...", ID = "stop", Flags = #MENUITEM_DISABLED},
	{""},
	{"Salir...", ID = "quit", Hotkey = "ESC"}
      }
    },
    {"?",
	{
	{"Sobre..", ID = "about"}
	}
    }
}
@DISPLAY {Title="Example Menu Bug ", Width=320, Height=208, Color=#WHITE, Borderless = False, NoClose=False,
	 KeepProportions=True, Sizeable = False, NoModeSwitch=True, Menu=1
}
Function p_MenuFunc(msg)
	Switch msg.action
	    Case "OnMenuSelect":
		Local r$ = ""
		Local doreq = True
		Switch msg.item
			Case "start":
				doreq = False

			Case "stop":
				doreq = False

			Case "start":
				doreq = False

			Case "about":
				doreq = False

			Case "quit":
				End()

			Default:
				r$ = msg.item
		EndSwitch
		If doreq
			If r$ = "" Then r$ = "Requester cancelled"
			SystemRequest("", "Your selection: " .. r$, "OK", #REQICON_INFORMATION)                                                 
		EndIf
	EndSwitch
EndFunction

DisplayBrush(300, 0, 0)

InstallEventHandler({OnMenuSelect = p_MenuFunc})

EscapeQuit(True)
Repeat
  WaitEvent
Forever
You can test the problem with your brush the problem is for jpg, etc., the pictures brushes soemtimes with text strings too.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Menu and iconify window under Windows

Post by airsoftsoftwair »

Right, seems to be a bug. I'll fix this. Thanks for reporting.
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: Menu and iconify window under Windows

Post by Juan Carlos »

Sometimes under MorphOS the bug appear but it is more difficult replay it, only with the VAMP, but is very much code to try find the bug in this moment.
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Menu and iconify window under Windows

Post by airsoftsoftwair »

Fixed.
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: Menu and iconify window under Windows

Post by Juan Carlos »

Thanks, and good job.
Post Reply