![]() |
Pane erase bug after Esc |
Post Reply
|
| Author | |
MichaelN
Senior Member
Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
Quote Reply
Topic: Pane erase bug after EscPosted: 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: 1210 |
Post Options
Thanks(0)
Quote Reply
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 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
MichaelN
Senior Member
Joined: 19 September 2006 Status: Offline Points: 112 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
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 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
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 |