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