Print Page | Close Window

Pane erase bug after Esc

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=17270
Printed Date: 09 August 2022 at 10:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Pane erase bug after Esc
Posted By: MichaelN
Subject: Pane erase bug after Esc
Date Posted: 17 September 2010 at 8:56pm
With a pane open, after pressing Escape, the pane wipes itself clean of all dialog controls but remains open. Is there a workaround?
 
Michael



Replies:
Posted By: mgampi
Date Posted: 18 September 2010 at 8:33am
Hi;

If you place a dialog inside your pane you have to override OnCancel() and leave it empty. Otherwise the default CDialog::OnCancel() (pressing ESC key) closes the dialog and this results in an empty pane.


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: MichaelN
Date Posted: 18 September 2010 at 12:45pm
Thanks --- it works! I looked in the docs, no mention of it.  I really appreciate your help.
 
Michael


Posted By: mgampi
Date Posted: 19 September 2010 at 4:08am
Hi;

Don't forget to handle the RETURN key! This also closes the dialog...


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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