Default Ok buttons gets focus automatically!
I am working with a dialog box with several edit boxes and buttons. When I start to write something in an edit box, the default 'ok' buttons gets the focus automatically, no matter if I had actually jumbed to the edit box from another button(= other button was in focus). So when I press enter the ok button is always executed. I don't want this to happen.
I have changed the tab order but it is not working. I want focus on my last button from where I jumped into the edit box. Please help!
Re: Default Ok buttons gets focus automatically!
Change the style of the Ok button in your resource file or use the resource editor to change the style. It currently has the DEFPUSHBUTTON style, which is why it automatically gets the focus.
Regards,
Paul McKenzie