Hollywood display inside a scrollgroup

Discuss GUI programming with the RapaGUI plugin here
Post Reply
pecaN
Posts: 124
Joined: Thu Jun 10, 2010 4:15 pm

Hollywood display inside a scrollgroup

Post 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...
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Hollywood display inside a scrollgroup

Post by airsoftsoftwair »

What platform are you on? Can you post a very small example snippet?
pecaN
Posts: 124
Joined: Thu Jun 10, 2010 4:15 pm

Re: Hollywood display inside a scrollgroup

Post 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...
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Hollywood display inside a scrollgroup

Post by airsoftsoftwair »

Ok, thanks for the report. I'll investigate if this is a bug or feature :)
pecaN
Posts: 124
Joined: Thu Jun 10, 2010 4:15 pm

Re: Hollywood display inside a scrollgroup

Post by pecaN »

yeah, thanks :-)
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Hollywood display inside a scrollgroup

Post 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 
Post Reply