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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 How do prevent closing of dialogs?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
additive Posted - 09/01/2010 : 11:15:06 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
additive Posted - 09/02/2010 : 10:43:09 AM
Wow! Sounds great! I will try it later.
Thank you so much!

Michael
rlewis Posted - 09/02/2010 : 04:43:12 AM
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 ....

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000