OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Prevent resizing with window decoration


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Meldryt
User


Joined: 02 Mar 2016
Posts: 41

PostPosted: Tue Aug 08, 2017 1:44 pm    Post subject:
Prevent resizing with window decoration
Reply with quote

Hi,

Is there any fix for the issue to prevent users from resizing the window with active window decoration in newer osg versions?

old thread: http://forum.openscenegraph.org/viewtopic.php?t=9882

_________________
OSG Version: 3.0.1
OS: OpenSuse Leap 42.1
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11275

PostPosted: Tue Aug 08, 2017 2:16 pm    Post subject:
Prevent resizing with window decoration
Reply with quote

On 8 August 2017 at 14:44, Sebastian Schmidt < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:
Is there any fix for the issue to prevent users from resizing the window with active window decoration in newer osg versions?

old thread: http://forum.openscenegraph.org/viewtopic.php?t=9882



Have you tried creating the GraphicsContext and setting the GraphicsContext::Traits::supportsResize to false?


Robert.

 

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Meldryt
User


Joined: 02 Mar 2016
Posts: 41

PostPosted: Thu Aug 10, 2017 6:35 am    Post subject:
Reply with quote

Quote:
Have you tried creating the GraphicsContext and setting the GraphicsContext::Traits::supportsResize to false?


I hoped there would be a simpler solution, but setting traits->supportsResize and call window->setWindowDecorationImplementation() again works for already existing GraphicsContext.

Thanks.

_________________
OSG Version: 3.0.1
OS: OpenSuse Leap 42.1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Resizing an FBO camera with OSG 3.2.0 James Turner General 0 Fri Dec 08, 2017 9:07 pm View latest post
No new posts QPropertyAnimation with openscengraph... arfaa General 0 Tue Aug 22, 2017 9:09 am View latest post
No new posts multiple window pick incorrect robertosfield General 1 Fri Aug 11, 2017 6:45 am View latest post
No new posts How to use frame buffer object in exi... saedrna1 General 2 Sat Feb 18, 2017 3:54 am View latest post
No new posts Embed in SFML window, rendering probl... rebootl General 2 Mon Oct 31, 2016 5:27 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP