Page 1 of 1

scrollablepane in Ogre how to ?

Posted: Mon Mar 22, 2010 11:02
by gabdab
Hello,
I was trying to use the scrollable pane sample inside the ogre engine, but I am encountering some errors .
Anyone pointing me to some code or infos ?

Re: scrollablepane in Ogre how to ?

Posted: Mon Mar 22, 2010 16:22
by Jamarr
You need to describe what the error is, and how you are producing it. You need to post your CEGUI.log file, as specified in the Forum Guidlines, along with any other debug information pertinent to the problem. We cannot help you if you do not provide sufficient information.

In regards to code and information on using a Scrollable Pane, have you looked at the samples and sample code provided with the sdk? Have you tried searching for relevant information on the wiki and forums?

Re: scrollablepane in Ogre how to ?

Posted: Mon Mar 22, 2010 17:05
by gabdab
I pasted the code here:
http://pastebin.org/120429
To be correct it outputs no errors ,but shows a blank screen where I expected to see a framewindow at least.
I did all the searching possible but no luck yet.

Re: scrollablepane in Ogre how to ?

Posted: Mon Mar 22, 2010 18:15
by Jamarr
It looks like you are using CEGUI v0.6 but I can't be certain. Can you post your CEGUI.log file? And can you also post the .layout file you are using?

Re: scrollablepane in Ogre how to ?

Posted: Tue Mar 23, 2010 15:16
by gabdab
Hello,
thanks for helping.
This is cegui log file :
http://pastebin.org/121129
I am not loading a layout at the moment and have commented out that part ,but basically this is the one I am using (unsuccesfully):
http://pastebin.com/WmLXwhym

As for cegui version it is 0.6.2 .

I evince from my own words that I should try latest cegui version and ogre..

Re: scrollablepane in Ogre how to ?

Posted: Thu Mar 25, 2010 09:54
by CrazyEddie
Hi,

Do you see the mouse cursor at all? Or is the screen entirely free from CEGUI rendering? Does the FrameWindow appear correctly if you do not have the scrollable pane attached?

CE.

Re: scrollablepane in Ogre how to ?

Posted: Fri Mar 26, 2010 16:33
by gabdab
Hi,
I can see the mouse cursor ,yes ,so CEGUI renders no problem.
Commenting the scrollablepane out is just the same .. mouse cursor only showing.
I might have to dig into scrollable panel properties or else ?

Re: scrollablepane in Ogre how to ?

Posted: Fri Mar 26, 2010 19:11
by CrazyEddie
I've re-examined your posted code; I see the FrameWindow is actually the root, and that you don't set a size - perhaps setting a size for the frame window will encourage it to show up? Also you may need to inform the OgreCEGUIRenderer of the display size via OgreCEGUIRenderer:: setDisplaySize - which takes a CEGUI::Size object describing the window or screen size in pixels.

CE.

Re: scrollablepane in Ogre how to ?

Posted: Sat Mar 27, 2010 09:18
by gabdab
..yes , working now !
Many thanks for helping :)