Page 1 of 1

Sizeable window the content disappear

Posted: Sun Jan 03, 2016 1:33 pm
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).

Re: Sizeable window the content disappear

Posted: Sun Jan 03, 2016 10:34 pm
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.

Re: Sizeable window the content disappear

Posted: Mon Jan 04, 2016 10:33 pm
by Juan Carlos
Thanks Andreas for your answer, I use a refresh function to show the content inside the window, buttons, graphics.