TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: STEFFEN OFFERMANN
from: ERIC CARMODY
date: 1995-08-02 13:31:00
subject: Q: WM_SETFOCUS

SO> I have a dialog window with an entry field in it. I do not want            
SO> the user to be able to change the content of that field directly.          
SO> What I want is a second dialog box that opens when the entry field         
SO> receives the focus, since the entry field only shows a part of the         
SO> actual data it stands for. However, when I intercept the WM_SETFOCUS       
SO> command to open that second dialog window, I get a problem. As the         
SO> PM reference says, I may not change the focus while processing             
SO> WM_SETFOCUS.

Why not take the approch of hooking the change event for the entry field and 
use that to activate your dialog.
It seems that hooking on the setfocus of the entry field means that a dialog is 
going to pop up even if the user is tabbing though fields.

Regards,
Eric
---
 þ RM 1.3 02837 þ 
--- PCBoard 15.2
* Origin: 32 lines 40 Gig BBS, Realtime InterNet SLIP (403)299-9900 (1:134/10)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 515 628 704 713/888 800/1 7877/2809
@PATH: 134/10 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.