Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-24 Thread Robert Osfield
Hi John, On 24 February 2012 03:53, John Simpson john.simp...@mbda.co.uk wrote: I know it's possible if I dig into the windowing system for a specific platform, but I was hoping to do it using an OSG cross-platfom method (see first post). The app's developing and I'm now using a

Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-24 Thread Jason Daly
On 02/23/2012 10:53 PM, John Simpson wrote: Jason I know it's possible if I dig into the windowing system for a specific platform, but I was hoping to do it using an OSG cross-platfom method (see first post). I think you misunderstood me. What I meant was that OSG should be able to

Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-23 Thread John Simpson
Hi, I still haven't got to the bottom of this. Use the source? John -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45726#45726 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-23 Thread Jason Daly
On 02/23/2012 10:20 AM, John Simpson wrote: Hi, I still haven't got to the bottom of this. Use the source? Hi, John, You mentioned this is going to be cross-platform. Is your code not working on any platform? I looked at the relevant code in GraphicsWindowX11.cpp, and it seems like it

Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-23 Thread John Simpson
Jason I know it's possible if I dig into the windowing system for a specific platform, but I was hoping to do it using an OSG cross-platfom method (see first post). The app's developing and I'm now using a CompositeViewer for which I'm explicitly creating a GraphicsContext so I have access to

Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-17 Thread John Simpson
Jason Thanks but the viewer still resizes taking the viewport with it. This is a screen capture app with the resultant data being streamed to an image processing algorithm for which the image size is fixed. It's based on the osgscreencapture example which does mysterious things with the

[osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-16 Thread John Simpson
Hi, I need to display a viewer window that the user can't resize. Tried all sorts. I assume it's the viewer's graphics context traits resize boolean but can't figure out a way to change it. This is a cross-platform app and I guess there will be a way of messing with the underlying Windows

Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-16 Thread Werner Modenbach
Does cross platform mean you are using Qt framework? In this case just assign a fixed size to the embedding window. Am 16.02.2012 13:40, schrieb John Simpson: Hi, I need to display a viewer window that the user can't resize. Tried all sorts. I assume it's the viewer's graphics context

Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-16 Thread John Simpson
Hi Werner Thanks for the reply. No I'm not using Qt, it's cross-platform at the console level so I'm relying on OSG's viewer windowing. John -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45506#45506

Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-16 Thread John Simpson
Hi, For info: this can be achieved using... osgViewer::ViewerBase::Windows windows; viewer.getWindow(windows); windows[0]-setWindowDecoration(false); But this also prevents the window being moved - not ideal. John -- Read this topic online here:

Re: [osg-users] How to prevent resize of viewer window (Windows and Linux)

2012-02-16 Thread Jason Daly
On 02/16/2012 08:46 AM, John Simpson wrote: Hi, For info: this can be achieved using... osgViewer::ViewerBase::Windows windows; viewer.getWindow(windows); windows[0]-setWindowDecoration(false); But this also prevents the window being moved - not ideal. Hi, John, There should be a better