🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.os.os2.programmer
1 messages
1 total messages Started by Kenneth Porter Sun, 30 Jun 1991 22:07
Returning the focus to an entry control
#3244
Author: Kenneth Porter
Date: Sun, 30 Jun 1991 22:07
13 lines
997 bytes
I have a dialog box with several entry boxes.  The valid values
are a range of numbers.  Upon receiving EN_KILLFOCUS, I want to
pop up a message box if the entered value doesn't meet the
requirements and return the focus to the offending entry box. 
I can get the message box to pop up, but WinSetFocus doesn't
return the focus to the offending entry box.  I'm using the
code from the QuickHelp example that calls WinSetFocus
immediately after WinMessageBox from within the EN_KILLFOCUS
handler.  What am I doing wrong?  The focus just goes to the
next control (whatever the user selected).
 
Ken (shiva@well.sf.ca.us)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads