Thanks, that works :-) Matthias
-----Ursprüngliche Nachricht----- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Ignacio Garcia Gesendet: Donnerstag, 11. Mai 2006 09:53 An: osg users Betreff: RE: [osg-users] How to disable the resize of a viewer window If you are in Windows, you can prevent the window from resizing with: LONG lStyles = ::GetWindowLong(hWnd, GWL_STYLE); lStyles &= ~WS_THICKFRAME & ~WS_MAXIMIZEBOX; ::SetWindowLong(hWnd, GWL_STYLE, lStyles); Of course, you need the window handle. If Producer created it, you can get it with rendersurface->getWindow. If you created it and passed it to Producer, set the window style before you do it. -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Holtz, Corbin L Enviado el: miercoles, 10 de mayo de 2006 14:37 Para: osg users Asunto: RE: [osg-users] How to disable the resize of a viewer window At least under X, disabling window resize is handled through the window manager. I haven't looked at RenderSurface for a while, but you need to look for window handling specific code (like setting the title of the window). I have no idea how Windows handles this stuff. Corbin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthias Kreiser Sent: Wednesday, May 10, 2006 1:28 AM To: 'osg users' Subject: [osg-users] How to disable the resize of a viewer window Hi Everyone, How can I set the an osg::Viewer window to a constant size? I don't want that the users can change the window size. Is there a possibility? And if not, can I at least set the window to a constant aspect ratio? I tried viewer.setLensAutoAspect(true) but that has no effect. Regards, Matthias _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
