DelphiFAQ Home Search:
General :: Programming :: Delphi :: VCL
About the Delphi VCL (Visual Component Library)


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Detect if Delphi is running

If you plan to deploy a component or application for demo purposes, you may want to have it run only if the Delphi IDE is loaded.
The following piece of code checks this:

  if  (FindWindow('TApplication', nil) = 0) or
       (FindWindow('TAlignPalette', nil) = 0) or
       (FindWindow('TPropertyInspector', nil) = 0) or
       (FindWindow('TAppBuilder', nil) = 0) then
     ShowMessage('Delphi is not running!');

Generated 16:01:39 on Jan 18, 2017