Print Page | Close Window

Sticky Frames - non-sticky direction

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=6094
Printed Date: 12 December 2024 at 9:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sticky Frames - non-sticky direction
Posted By: akur
Subject: Sticky Frames - non-sticky direction
Date 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!




Replies:
Posted By: akur
Date 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.


Posted By: akur
Date 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?



Posted By: akur
Date 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]


Posted By: ABuenger
Date Posted: 23 January 2007 at 6:57am
Originally posted by akur akur wrote:

released Feb 19th, 2007.


Back to the future?



-------------
Codejock support


Posted By: akur
Date 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...


Posted By: Oleg
Date Posted: 23 January 2007 at 11:23am
Thanks, These suggested lines will be added for next release.

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


Posted By: akur
Date Posted: 30 January 2007 at 8:57am
Thank you. Indeed, this has been fixed in v10.4.2, very quickly.



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