How to Clear Multiple Edits Without Refering to Them One by One

Posted December 15th @ 9:23 pm by m3Rlin

Let’s say you have a data entry form or a MP3 ID3 tag editor form. The user clicks the “Clear” button. The more edit controls you have the less you want to write the code to clear them Well, here’s a better idea:

procedure TMainForm.btnClear(Sender: TObject);
var
iI: Integer;
begin
for iI := 0 to [...]

How to Focus the Next Edit Control With the Enter Key II

Posted December 15th @ 1:57 pm by m3Rlin

When creating forms with a lot of data entry you may want to consider the option to let the user focus the next edit control by hitting the Enter key. The default key is Tab which can become annoying
All we have to do is add the following code the each TEdit control on the [...]

« Previous Entries