![]() |
Pane erase bug after Esc |
Post Reply ![]() |
Author | |
MichaelN ![]() Senior Member ![]() Joined: 19 September 2006 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1188 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
MichaelN ![]() Senior Member ![]() Joined: 19 September 2006 Status: Offline Points: 112 |
![]() ![]() ![]() ![]() ![]() |
Thanks --- it works! I looked in the docs, no mention of it. I really appreciate your help.
Michael
|
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1188 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |