Disable double-click pane caption for docking |
Post Reply |
Author | |
lorinboyer
Newbie Joined: 21 July 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 21 July 2009 at 2:40pm |
In the program that I have created, when a pane's caption is double-clicked, the whole program crashes. Is there a way to disable double clicking the caption to automatically dock a pane?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Please attach sample that can show such problem.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
lorinboyer
Newbie Joined: 21 July 2009 Status: Offline Points: 2 |
Post Options
Thanks(0)
|
The program is very complex that I am creating. There is really no way to post a code sample.
When you double-click the pane caption, several Action events are run. In those events, I create and destroy other windows. When you manually drag the pane, there is no problem. When you double click the caption, there is a crash. The list of action events is basically the same for each way. I found a way to prevent the crash. In the Action event for the docking pane manager, instead of immediately destroying any pane, I start a timer. After 100 milliseconds, I destroy the panes. It seems to be working. My preference would have been to disable the ability to double click the Pane caption. I don't like it automatically docking. I think a better approach would be to run an event when it is pane caption is double clicked and let the develop decide what should happen. |
|
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 |