Print Page | Close Window

Disable double-click pane caption for docking

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=14788
Printed Date: 28 April 2024 at 8:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disable double-click pane caption for docking
Posted By: lorinboyer
Subject: Disable double-click pane caption for docking
Date 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?



Replies:
Posted By: Oleg
Date Posted: 22 July 2009 at 4:10am
Hi,
Please attach sample that can show such problem.


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


Posted By: lorinboyer
Date Posted: 22 July 2009 at 8:57am
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.





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