Page 1 of 1

Anim example

Posted: Mon Apr 22, 2019 8:42 am
by r-tea
There is an Anim example within MUIRoyale drawer.
I try to find out how to adapt the size of a brush to the Hollywood object area.
I suppose there is a part of code where it takes place, bu I can't understand how msg.Width "knows" we need exactly the Hollywood display area?

Code: Select all

	; has the size of our Hollywood class changed?
	If msg.Action = "SizeWindow"
      		swidth = msg.Width
		sheight = msg.Height
      		CreateBrush(1, swidth, sheight)
      		Return
   	EndIf

Re: Anim example

Posted: Tue Apr 30, 2019 8:49 pm
by airsoftsoftwair
The "SizeWindow" event is triggered every time the window is resized and then msg.Width and msg.Height will contain the current window size.

Re: Anim example

Posted: Fri May 03, 2019 7:34 pm
by r-tea
But it takes the size of the whole window (including borders), and the brush is odopted only to the Hollywood display size.

Re: Anim example

Posted: Sat May 04, 2019 12:53 pm
by airsoftsoftwair
No, it should report the size of the Hollywood widget, not of the MUI window...

Re: Anim example

Posted: Sat May 04, 2019 7:48 pm
by r-tea
Thank you. I finally managed with it.