I would like to display an Ogre viewport inside a CEGUI dialog box. Is there any CEGUI window type that is oriented for this purpose?
I think this may be an usual thing to do (with Ogre or any other graphics engine) but I didn't find any topics on this. If there is can you point out to those?
I manage to achieve a not so good solution wich was to create a non visible zone in my CEGUI::FrameWindow by composing it with other CEGUI windows and then I inserted the ogre viewport in that zone. The moving and resizing of the ogre viewport is performed manually when the CEGUI::FrameWindow move and resize callbacks are called. The result was the following:

The problem is that the ogre viewport is not really a child of the CEGUI::FrameWindow, and so if there is another GEGUI::Window already in the screen this viewport allways appears behind that window, while the children of the CEGUI::FrameWindow appear in front of it. This situation can be seen in the following capture where the title bar of the window which has the ogre viewport appears in front of the other window but the ogre viewport doesn't.

So I think I really have to create an embedded ogre viewport in the CEGUI::Window.
Can you tell me how it's done.
Thank you.