Hi,

So, I have a class MessageWidget whose header looks like this:

Code:
   class MessageWidget : public osgWidget::Canvas, public 
immi::interfaces::MenuCallback 


Inside this class, there's a method which creates 3 widgets (all stored as 
members of the class), and adds them via the method addWidget. When the user 
clicks on a button, I remove one of the widgets via the method removeWidget. 
However, the main widget ( isn't resized automatically, nor does it work to use 
the resize method).

This is how the widget looks before adding the other widgets: 
[img] http://i.stack.imgur.com/JyU2d.jpg [/img] 
This is how the widget looks after adding 2 widgets: 
[img] http://i.stack.imgur.com/dNyNU.png [/img]
And then, when I remove the widget with the text, the main widget isn't 
resized: 
[img] http://i.stack.imgur.com/UiFIV.png [/img]

Any ideas of how I can resize the MessageWidget?  It has to be the same size as 
in the first picture.

Thank you!

Cheers,
Valeriu

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51161#51161




Attachments: 
http://forum.openscenegraph.org//files/uifiv_139.png
http://forum.openscenegraph.org//files/dnynu_117.png
http://forum.openscenegraph.org//files/jyu2d_213.jpg


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to