Hollywood display inside a scrollgroup

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

Hollywood display inside a scrollgroup

Post by pecaN » Thu Feb 06, 2020 3:11 pm

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):

@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: 3359
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Hollywood display inside a scrollgroup

Post by airsoftsoftwair » Fri Feb 07, 2020 9:53 pm

What platform are you on? Can you post a very small example snippet?

pecaN
Posts: 122
Joined: Thu Jun 10, 2010 4:15 pm

Re: Hollywood display inside a scrollgroup

Post by pecaN » Sun Feb 09, 2020 10:17 pm

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 :

@DISPLAY {Width=800, Height=600}

<scrollgroup>
<hollywood Display="1"
</scrollgroup>

and then I choose a new BGPic via requester and display it :

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: 3359
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Hollywood display inside a scrollgroup

Post by airsoftsoftwair » Sun Feb 16, 2020 12:11 am

Ok, thanks for the report. I'll investigate if this is a bug or feature :)

pecaN
Posts: 122
Joined: Thu Jun 10, 2010 4:15 pm

Re: Hollywood display inside a scrollgroup

Post by pecaN » Wed Feb 19, 2020 7:29 pm

yeah, thanks :-)

Post Reply