Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


TEdit SetFocus() or how to ...

Denny_BDenny_B Member Posts: 70
it may be a simple problem, but I am stuck:
I have a form with some TEdit single line components. I want to check that the value is a floating point before hitting OK button. So I have a function to check for this on TEdit->Exit() - it works OK. But than if the value is error, I want to set the focus back to that edit box. If I do it with SetFocus() message, the edit box looses its mouse input (SetFocus() enables keyboard input only - apparently).
How to set the focus to an edit box?
Thanks for your help,
Sign In or Register to comment.