Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Disable double-click pane caption for docking
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disable double-click pane caption for docking

 Post Reply Post Reply
Author
Message
lorinboyer View Drop Down
Newbie
Newbie


Joined: 21 July 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote lorinboyer Quote  Post ReplyReply Direct Link To This Post Topic: Disable double-click pane caption for docking
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 July 2009 at 4:10am
Hi,
Please attach sample that can show such problem.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
lorinboyer View Drop Down
Newbie
Newbie


Joined: 21 July 2009
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote lorinboyer Quote  Post ReplyReply Direct Link To This Post 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.


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.