How to Add Files to the Start|Documents Menu

Posted December 15th @ 6:49 pm by m3Rlin

Windows keeps track of the files you work with ands them to the Start|Documents menu. If you want to add documents to this menu from your program, just use the SHAddToRecentDocs() function. The function requires a PChar parameter but so you can use aways either typecast strings to PChars or use the StrPCopy() function.

uses ShlObj;

[...]

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 [...]