July 23, 2024, 08:56:20 AM


Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........

setfocus question

Started by Haim, April 14, 2009, 12:32:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


This is probably a stupid question but I am unable to resolve it  :-[

How can I display a modal dialog, with focus set to a specific edit control on it.

usiing Getcontrol(ID_EDIT1)->setfocus(); from the dialog's OnInitDialog() method does not work.
I guess focus is moved to the dialog itself

Any idea?


Issue resolved.
Just my stupid mistake
Sorry to have bothered you all.