One way is to put it into a wxBoxSizer with the appropriate
constraints so that it resizes itself to the dimensions of the parent
container.
-c

2008/10/9 YangXiao <[EMAIL PROTECTED]>:
> Hi:
>    When i use  viewer->getCamera()->setViewport(0,0,1024,768);
>
>    But  when i
> void PickHandler::pick(const osgGA::GUIEventAdapter& ea, osgViewer::Viewer*
> viewer)
> {
>  ......
>  osg::Viewport* viewport = viewer->getCamera()->getViewport();
>
> Here I found  viewport  size is not (1024,768);
> }
>
> How to set fixed viewerport in wxWidgets2.8.8.
>
> Best regards!
> YangXiao.
>
> ________________________________
> 雅虎邮箱,您的终生邮箱!
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>



-- 
AsymptopiaSoftware | [EMAIL PROTECTED]
                 www.asymptopia.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to