Dear Lazarus list.

I'm stuck with a problem I think others must have encountered as well and seek some help to solve it.

When entering text, numbers, etc. into an edit control, I use the OnEditingDone event to validate the content. And if the content doesn't conform with my rules I would like to ensure the focus is kept at the edit being validated.

However this seem like and impossible task. If the focus is given to any other control (using mouse, tab, etc) this change of focus forces a call to my OnEditing event, but no matter whether I raise an exception, call abort or just exits, I can't seem to keep the focus on the edit.

Any suggestions are welcome.

Kind regards,
Torsten Bonde Christiansen.

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to