|
-
October 2nd, 2010, 05:08 AM
#1
Setting Keyboard Focus on a TEdit Control
I basically have a InputQuery Box with a TEdit control. I obtain the handles(HWND) of both the Box & the Control.
My only issue is that when the InputBox is displayed the TEdit control isn't focused by default, I have to press a key to make it take keyboard focus.
Is there anyway (PostMessage?) through which I can give the focus to TEdit Control. Originally the Window has the control since if I press Down Arrow, the Move,Close Menu appears on the InputBox.
P.S. I've tried WM_ACTIVATE, SETFOCUS,WM_KEYDOWN('A'). None work however the KEYDOWN does print an 'A' in the TEdit control however the keyboard focus is still not belonging to it.
Regards,
Nisheeth Barthwal
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|