Page 1 of 1

Hollywood display inside a scrollgroup

Posted: Thu Feb 06, 2020 3:11 pm
by pecaN
Hi,

I have a question. I have a hollywood display inside a scrollgroup. it works great because if the display is bigger than available space, there are scrollbars created automatically and I can freely scroll the display as intended.

But whenever I change the display size, which is done usually by loading a new background pic via LoadBGPic (so the display automatically scales to fit the size of the new BGPic) the whole RapaGUI app window shrinks to the window of approx 400x20 pixels. It can be easily solved by by maximizing window by clicking on the gadget but I'm just curious why's that so...

In my case it's like this (just an excerpt):

Code: Select all

@DISPLAY {Width=800, Height=600}

<scrollgroup>
<hollywood Display="1"
</scrollgroup>
So the initial RapaGUI window is set in my xml source to be 1300x700 and it opens in that resolution with my 800x600 display prefectly visible in full size. But then I load a new pic via LoadBGPic and when I call DisplayBGPic, it displays it but immediately after the window is set to the minimal 400x20 as I wrote previous...

Re: Hollywood display inside a scrollgroup

Posted: Fri Feb 07, 2020 9:53 pm
by airsoftsoftwair
What platform are you on? Can you post a very small example snippet?

Re: Hollywood display inside a scrollgroup

Posted: Sun Feb 09, 2020 10:17 pm
by pecaN
Sorry I forgot to wrote I was on Win10 RapaGUI 1.2 Hollywood 8:-(

Well it's like this :

hollywood display initialised and wrapped inside a scrollgroup :

Code: Select all

@DISPLAY {Width=800, Height=600}

<scrollgroup>
<hollywood Display="1"
</scrollgroup>
and then I choose a new BGPic via requester and display it :

Code: Select all

obrazek$=FileRequest("Vyber obrázek")
LoadBGPic(1,obrazek$)   DisplayBGPic(1)
and the pic is correctly loaded but then the window shrinks to aprox 800x20 after displaying the new pic... previously it was just 400x20 but I made some changes to the gui since and now it's 800x20 pixels. But as I said, it's not a big problem, one click on the maximizing gadget and it's ok...

Re: Hollywood display inside a scrollgroup

Posted: Sun Feb 16, 2020 12:11 am
by airsoftsoftwair
Ok, thanks for the report. I'll investigate if this is a bug or feature :)

Re: Hollywood display inside a scrollgroup

Posted: Wed Feb 19, 2020 7:29 pm
by pecaN
yeah, thanks :-)

Re: Hollywood display inside a scrollgroup

Posted: Sun Aug 16, 2020 4:45 pm
by airsoftsoftwair

Code: Select all

- Fix [Windows/macOS/Linux]: When changing the size of a Hollywood widget that was embedded inside a widget
  of type Scrollgroup, the scrollgroup's size was reset to its minimum size