Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Sticky Frames - non-sticky direction
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sticky Frames - non-sticky direction

 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 - non-sticky direction
    Posted: 12 January 2007 at 6:18am
Hello,

I've noticed that floating sticky frames don't have the same behaviour in all 4 directions. When trying to stick a pane to horizontal/vertical sides of mainframe, I get a successful snapping when dragging a pane inwards horizontally, outwards horizontally, and inwards vertically (PaneSample):




But I do not get any snapping if I drag the pane outwards vertically:



I guess this is not by design and maybe is worth correction. What do you think about this?

Thank you, in advance!

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: 19 January 2007 at 5:09am
To say it more precisely:
Panes' top doesn't stick to mainframe's top
   AND
Panes' bottom doesn't stick to mainframe's bottom.
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: 19 January 2007 at 7:36am
Just found it. I guess these extra conditions are missing from
void CXTPDockingPaneContext::UpdateStickyFrame(CRect& rectDragFrame, CWnd* pHost) :

    if (abs(rectDragFrame.bottom - rcWork.bottom) < nGap)
    {
        rectDragFrame.OffsetRect(0, rcWork.bottom - rectDragFrame.bottom);
    }
    if (abs(rectDragFrame.top - rcWork.top) < nGap)
    {
        rectDragFrame.OffsetRect(0, rcWork.top - rectDragFrame.top);
    }

Could it be fixed in the next maintenance release, please?

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: 23 January 2007 at 5:10am
I'm somewhat sad to see that this bug has neither been removed in 10.4.1, released Jan 19th, 2007. [post edited]
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2007 at 6:57am
Originally posted by akur akur wrote:

released Feb 19th, 2007.


Back to the future?

Codejock support
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: 23 January 2007 at 7:05am
Yeah, sorry. I meant January. Anyway, maintaining our software versions I sometimes feel just like in a time machine...
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: 23 January 2007 at 11:23am
Thanks, These suggested lines will be added for next release.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 30 January 2007 at 8:57am
Thank you. Indeed, this has been fixed in v10.4.2, very quickly.
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.125 seconds.