April 20, 2024, 12:36:06 AM

News:

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.

Haim

Hello,
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?

Haim

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