Print Page | Close Window

Sticky frames multimonitor problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=6079
Printed Date: 12 December 2024 at 9:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sticky frames multimonitor problem
Posted By: akur
Subject: Sticky frames multimonitor problem
Date Posted: 11 January 2007 at 2:10am
Hello,

I guess the sticky frames feature is not complete when it comes to using your app maximized, in a multimonitor environment.
Try to run PaneSample (v10.4) and maximize it on the left monitor. Now with sticky frames turned on, try to snap one of the panes to the right side of the left monitor. Some pixels of the snapped pane will be placed outside the left monitor. You will see something like this:



When the app is not maximized, snapping of panes is exact.
Is this a bug or a feature? If feature, can it be turned off somehow?

Our clients often use 2 monitors, where the XTP-enriched app runs maximized on the left screen, so this kind of snapping can bother them.




Replies:
Posted By: akur
Date Posted: 11 January 2007 at 6:53am
I think this is because the system recognizes maximized windows as having the screen size augmented by width of their frame, on all 4 sides (a maximized window's size is somewhat bigger than the screen's width x height).
So this is why panes stick some pixels around the main window of the app.
Am I right with this?


Posted By: Oleg
Date Posted: 12 January 2007 at 1:07am
Hello,
good catch. thanks.
 
We added
 
 if ((m_pManager->GetSite()->GetStyle() & (WS_MAXIMIZE | WS_MINIMIZE)) == 0)
in CXTPDockingPaneContext::UpdateStickyFram to check if frame was not maximized or minized.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net