Re: Edit.OnExit versus Button.OnClick

From: RA (robert_ankka_at_hotmail.com.invalid)
Date: 12/27/04


Date: Mon, 27 Dec 2004 17:04:25 +0200


Well, after all I thought that it should be decided before what is going to
happen: if we are going to save the name after having edited it, we have to
click an option 'Save' and if not, we can write the name to the Edit Box and
exit it in any way, <tab>, <enter> or using the mouse. Of course it means
one extra click and is not so convenient for those who would prefer to use
the keyboard only. By the way, was it ok to code the OnKeyPress like: if
Key in ['A'..'Z']+['0'..'9']+[#8]+[#13]+[#47] then else Key:=#0; To myself
it looks like a bit clumsy. There the user is allowed to use only letters,
numbers, backspace (delete), enter and '/'. Many thanks for the useful
advices you all have given!
-- Roope