How to Find Out if Delphi is Running

Posted December 15th @ 9:29 pm by m3Rlin

You may want your program to check if Delphi is running. Well, if so try out this code. This is the method for programs:

function IsDelphiRunning: Boolean;
begin
Result := (FindWindow(’TAppBuilder’, nil) > 0);
end;
If you want to check if Delphi is running and you are creating VCL components then you should check for the csDesigning flag.
Here’s [...]

How to Automatically Create Implementation Declarations

Posted December 15th @ 3:57 pm by m3Rlin

Delphi 4 and newer (versions Client/Server and up) have the capability of automatically creating declarations for functions/procedures. The key shortcut is Shift + Ctrl + C. To use it you have to enter the function/procedure declaration in the interface part and the press the above mentioned keystroke combination. The Delphi IDE will take care of [...]

« Previous Entries