Print Page | Close Window

[Closed] Redraw Problem

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=5340
Printed Date: 19 May 2024 at 3:09pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Closed] Redraw Problem
Posted By: Simon HB9DRV
Subject: [Closed] Redraw Problem
Date 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



Replies:
Posted By: akur
Date Posted: 23 October 2006 at 6:13am
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?


Posted By: Simon HB9DRV
Date Posted: 23 October 2006 at 6:22am
Originally posted by akur akur wrote:

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?

DOH!

Many thanks :-)


-------------
Simon HB9DRV


Posted By: Oleg
Date Posted: 23 October 2006 at 9:26am
ps. don't forget to override OnCancel also (For Escape)

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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