Scroll in panel

siondream

24-06-2011 08:57:51

Hi, it's me around here again :-).

I'm trying to build a level selection layout using MyGUI Layout Editor. As you can see in the picture, I want a Panel with a vertical scroll bar on the right. Inside the first level Panel there will be one Panel for each level containing a StaticImage with the level logo and two TexBoxes with name and description. If there are lots of levels I would like the Panel to scroll down/up to be able to select each level.



The problem is that when I add more levels, they clip under the limits of the first level Panel, no scrolling happens at all. I supose I have to link the scroll bar to the global Panel somehow but I don't know the process.

Could you help me, please?

Altren

24-06-2011 10:55:58

You need to use ScrollView instead of separate Panel and Scroll. ScrollView have internal virtual area where you place widget and which you can scroll, scroll appears when it's internal size is bigger that real size.

siondream

24-06-2011 10:59:28

You need to use ScrollView instead of separate Panel and Scroll. ScrollView have internal virtual area where you place widget and which you can scroll, scroll appears when it's internal size is bigger that real size.

Thanks, and how is the ScrollView widget called in the Layout Editor?

Altren

24-06-2011 14:40:47

It is called ScrollView. Compile new layout editor from sources (it comes with MyGUI). Using so old editor is not really god idea in general - it have various bugs and doesn't support new widgets.

siondream

24-06-2011 15:10:06

Okey, but if I use the layout editor from the sources in Linux it won't create any projects/layouts because it says "File already exists" (when obviously it doesn't). I've opened an existing layout but doesn't gets my 1280x720 resolution and widgets appear cut. Where can I change the layout size? How can I solve the file existing problem?

Thanks!