[Closed] Redraw Problem |
Post Reply |
Author | |
Simon HB9DRV
Senior Member Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
Posted: 23 October 2006 at 5:45am |
I have CDialogs inside panes.
Pressing 'Return' causes the dialog to be 'undisplayed' (goes grey), as soon as I resize the pane it is redisplayed. The pane has to be active (have the focus). This is not a problem with the CodeJock sample with a Dialog pane (can't remember the sample now). Any suggestion please? |
|
Simon HB9DRV
|
|
akur
Senior Member Joined: 16 May 2006 Status: Offline Points: 139 |
Post Options
Thanks(0)
|
When your pane is active and you press 'Return', it will activate the default (even invisible) OK button of the dialog, so OnOK() of your dialog will be called - the default implementation of which closes (hides) your dialog. Don't you have the same problem with pressing 'Esc'?
This could be your problem, isn't it? |
|
Simon HB9DRV
Senior Member Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
Post Options
Thanks(0)
|
DOH! Many thanks :-) |
|
Simon HB9DRV
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
ps. don't forget to override OnCancel also (For Escape)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |