You are viewing articles in the General category &rarr


How to Stop Your Program For a Period of Time

Posted December 15th @ 9:32 pm by m3Rlin

This procedure will let your programs process Windows messages. The only thing is that this function may stop only this procedure while not stopping the rest

var
dtNow: TDateTime;
begin
{ Before pause }
dtNow := Now;
repeat
Application.ProcessMessages; { Process Windows messages }
until dtNow + [...]

How to Focus the Next Control After Pressing Enter

Posted December 15th @ 9:31 pm by m3Rlin

By default the focus is passed to the next control by pressing the Tab key. Well, sometimes (when filling out forms) you may want to pass to the next control after pressing Enter. Well, here’s the code: For TEdit controls only:
Select all the TEdit controls you want to include (using the Shift key), then select [...]

« Previous EntriesNext Entries »