Sizeable window the content disappear

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

Sizeable window the content disappear

Post by Juan Carlos »

I find this problem when you rezise the window the content inside of it, the graphics disappear.
Example:

Code: Select all

@BRUSH 300, "Amiga500.jpg", {Loader="inbuilt"} ;Here you can test with other picture.
@DISPLAY {Title="Example Sizeable Bug ", Width=320, Height=208, Color=#WHITE, Borderless = False, NoClose=False,
	 KeepProportions=True, Sizeable = True, NoModeSwitch=True
}
DisplayBrush(300, 0, 0)

EscapeQuit(True)
Repeat
  WaitEvent
Forever
The graphic is place in 0,0, and the Sizeable=True is where I found the problem.
This problem is for Windows and Amiga(tested under MorphOS).
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Sizeable window the content disappear

Post by airsoftsoftwair »

This is not a bug. By default, Hollywood will scale the BGPic and draw it when the window is resized. You have to catch the "SizeWindow" event and draw the brush again or use layers.
User avatar
Juan Carlos
Posts: 889
Joined: Mon Sep 06, 2010 1:02 pm

Re: Sizeable window the content disappear

Post by Juan Carlos »

Thanks Andreas for your answer, I use a refresh function to show the content inside the window, buttons, graphics.
Post Reply