The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 How do prevent closing of dialogs?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

additive

Germany
109 Posts

Posted - 09/01/2010 :  11:15:06 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8.1 and Service Release 2
Operating System: Windows XP

Pressing the keyboard’s enter button by accident will close Visual-C++ dialogs (seems to fire ON_OK event).

Can you reproduce this behavior? What’s the easiest way to get rid of this behavior? It should work for modal and unmodal dialogs.

Remark: Disabling of VC++’s default button option did not help. Besides, I noticed that when entering an edit field the focus is set on the OK button (IDOK resource ID) automatically.

Any idea is appreciated!

/ Michael

rlewis

Canada
253 Posts

Posted - 09/02/2010 :  04:43:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I've had this problem as well ..
My solution is to create a new button control and set it as the default. One can then make this button invisible and set its event handler to a dummy that does nothing ....
Go to Top of Page

additive

Germany
109 Posts

Posted - 09/02/2010 :  10:43:09 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Wow! Sounds great! I will try it later.
Thank you so much!

Michael
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000