Print Page | Close Window

How do you detect if a ToolBar has been reposition

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8101
Printed Date: 14 November 2025 at 8:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How do you detect if a ToolBar has been reposition
Posted By: terrym
Subject: How do you detect if a ToolBar has been reposition
Date Posted: 20 September 2007 at 12:34pm
How do you detect if a ToolBar has been repositioned please, anybody know as cant seem to find ;)
 
Cheers for any help


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



Replies:
Posted By: Oleg
Date Posted: 21 September 2007 at 1:02am
Hello,
 
You can override CMainFrame::RecalcLayout. It will be called each time user move toolbar, resize window etc.


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


Posted By: terrym
Date Posted: 21 September 2007 at 3:45am
Problem is thou this is called straight away when user clicks on a ToolBar, however we need to know once the user has finished repositioning the toolbars

-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: Oleg
Date Posted: 21 September 2007 at 9:53am
Hi,
 
You can pach CXTPDockContext::StartDrag method and add code you need.


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


Posted By: terrym
Date Posted: 21 September 2007 at 10:02am

Excellent, thanks will give that a go



-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey


Posted By: terrym
Date Posted: 20 April 2008 at 4:52am
Is there a reason that ::EndDrag is not a function so we can then do stuff after the drag has ended.
 
See in our application we rebuild images once the workspace changes size, but unless we can detect when the user has finished moving/resizing toolbars etc. then it is impossible to do this in this situation.
 
Please let us know if this can be added to XTP 12 as this would not break the code :( and makes sense to allow users to do stuff after a task has ended


-------------
Thank you,
Terry Mancey

email terry@tmancey.ltd.uk | linkedin www.tmancey.ltd.uk | twitter @tmancey



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