Hi all,
I have a problem with tab controls and childwindows. In a childwindow there is a textbox with user input. After "CBCTLMSG = %EN_KILLFOCUS"
the program checks if the user input is OK. So far all right. The issue occurs when the focus changes by striking the Enter-key.
Then the program performs the "OK"-command in the parentwindow (the "OK"-button has the %DM_SETDEFID-style) BEFORE reaching %EN_KILLFOCUS in
the childwindow. So the dialog is closed before the user input is proved and eventually corrected. This does not happen when the "OK"-button
is activated by mouse-click. How can I make sure that the program "visits" %EN_KILLFOCUS first under all circumstances?
I have a problem with tab controls and childwindows. In a childwindow there is a textbox with user input. After "CBCTLMSG = %EN_KILLFOCUS"
the program checks if the user input is OK. So far all right. The issue occurs when the focus changes by striking the Enter-key.
Then the program performs the "OK"-command in the parentwindow (the "OK"-button has the %DM_SETDEFID-style) BEFORE reaching %EN_KILLFOCUS in
the childwindow. So the dialog is closed before the user input is proved and eventually corrected. This does not happen when the "OK"-button
is activated by mouse-click. How can I make sure that the program "visits" %EN_KILLFOCUS first under all circumstances?
Comment