scrolling image with ScrollablePane

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
sphinkie
Just popping in
Just popping in
Posts: 8
Joined: Wed Jan 12, 2005 12:06
Location: Paris
Contact:

scrolling image with ScrollablePane

Postby sphinkie » Fri Mar 10, 2006 14:37

Hi,

I am trying to create a small window, with an EEG scrolling inside.

I have created a ScrollablePane.
I have created a Child ContentPaneArea for him.

If I understand well, the ScrollablePane has a bigger size.
And the Child is like a small windows that I can move and I can see a part of the ScrollablePane thru it.

Is that right ?

But how can I associate an image to the ScrollablePane ?

Thanks for your help.

User avatar
martignasse
Just can't stay away
Just can't stay away
Posts: 227
Joined: Thu Apr 14, 2005 08:10
Location: Lyon, FRANCE

Postby martignasse » Fri Mar 10, 2006 15:36

hi sphinkie,


You make the ScrollablePane the size you want to visualy have on you'r layout.

the Child ContentPaneArea is, or bigger(and you'll have scrollbar active), or smaller(and the scrollbar are inoperante).

and if you want to have an image, just add the image to the scrollablepane with the addChildWindow() methode.

hope it help.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 26 guests