Hi Issam,

My guess is that the state that the OSG is applying is affecting
Cegui.  You could try applying a osg::StateSet that contains the state
that Cegui is assuming prior to calling Cegui.

Robert.

On Sat, Dec 18, 2010 at 1:48 PM, issam boughanmi <[email protected]> wrote:
> well
>
>
> i solved my problem to render into cegui elmement but i am facing another one
>
> plesae see the attached image
>
> [Image: http://img811.imageshack.us/img811/7510/screenah.jpg ]
>
> please note the cegui listbox in the left
>
>
>
> here my code to create the textitems dynamically
>
> Code:
>
>  AvionsListBox = m_pHUD->GetWidget("AvionsListBox");
>  static_cast<CEGUI::Listbox*>(AvionsListBox)->setMultiselectEnabled(false);
>
>  ListboxTextItem * listBoxItem = new ListboxTextItem("Cessna 172-p", 1);
>  listBoxItem->setSelectionBrushImage("WindowsLook", 
> "MultiListSelectionBrush");
>  static_cast<CEGUI::Listbox*>(AvionsListBox)->addItem(listBoxItem);
>
>  listBoxItem = new ListboxTextItem("L39 - Albatros." ,2);
>  listBoxItem->setSelectionBrushImage("WindowsLook", 
> "MultiListSelectionBrush");
>  static_cast<CEGUI::Listbox*>(AvionsListBox)->addItem(listBoxItem);
>
>
>
>
> this is something related to cegui definitivelly but since i got no support 
> on their forum i ask here
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=34958#34958
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to