What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [questions] focus to a control + default submit button

[questions] focus to a control + default submit button
Author: Message:
cooldude_i06
Full Member
***

Avatar
I'm so cool I worry myself.

Posts: 272
Reputation: 9
– / Male / –
Joined: Sep 2003
O.P. RE: [questions] focus to a control + default submit button
To give an editcontrol focus by default I had to use

code:
Wnd.SendControlMessage('sControlId', 513, 0, 0); //WM_LBUTTONDOWN = 513
Wnd.SendControlMessage('sControlId', 514, 0, 0); //WM_LBUTTONUP = 514


But, thanks for pointing me in the right direction. As for making a default button, so that if a user presses enter after typing stuff in an editcontrol, it clicks the button, "sendControlMessage" can be used to click the button. But I am still stumped on how to detect if the user has pressed enter...

Thanks
CD
[Image: clb2.jpg]
06-27-2006 06:43 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[questions] focus to a control + default submit button - by cooldude_i06 on 06-27-2006 at 03:16 AM
RE: [questions] focus to a control + default submit button - by matty on 06-27-2006 at 03:54 AM
RE: [questions] focus to a control + default submit button - by cooldude_i06 on 06-27-2006 at 06:43 AM
RE: [questions] focus to a control + default submit button - by Eljay on 06-27-2006 at 07:25 AM
RE: [questions] focus to a control + default submit button - by cooldude_i06 on 06-27-2006 at 08:21 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On