Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Sticky frames multimonitor problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sticky frames multimonitor problem

 Post Reply Post Reply
Author
Message
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post Topic: Sticky frames multimonitor problem
    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.

Back to Top
akur View Drop Down
Senior Member
Senior Member


Joined: 16 May 2006
Status: Offline
Points: 139
Post Options Post Options   Thanks (0) Thanks(0)   Quote akur Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.