![]() |
How do you detect if a ToolBar has been reposition |
Post Reply
|
| Author | |
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
Topic: How do you detect if a ToolBar has been repositionPosted: 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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
terrym
Senior Member
Joined: 13 April 2007 Status: Offline Points: 836 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |