The problem now is as follows.`

I have the following code:

   label =  new osgWidget::Label;
   label->setLabel("1234");
   label->setPadding(10.0f);
   label->addSize(21.0f, 22.0f);

   window = new osgWidget::Canvas;
   window->addWidget(label);

   window->setUpdateCallback(new AnimatedUpdateCallback(this));

Then on the callback code I have:

   label->setLabel("123");
   window->resize();

As result, after the callback code, I see the label shifted a little bit on the 
right wrt the previous text (i.e. "1234") because the "123" text is shorter.
Is there a way to set the label aligned on the left even if I update the text 
in the callback with a shorter string wrt the previous one?

Regards
Gianni

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





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

Reply via email to