Delphi

Setting a transparent background color for TImageList

Author: Embarcadero USA Question and Answer Database FAQ2346D.txt Setting a transaprent background color for TImageList Category :Miscellaneous Platform :All Product :Delphi 3.x Question: How do I set the transparent color in an TImageList so the background color doesn't show? Answer: Use the TImageList.AddMasked(Bitmap: TBitmap; MaskColor: TColor) method. You can either pass the…
Read more
C++

How to put a progress bar on a Status Bar ...

Author: Embarcadero USA Question and Answer Database FAQ2293C.txt How to put a progress bar on a Status Bar ... Category :VCL Platform :All Product :C++Builder 3.x Question: How Do I put a Proress bar on a status bar. Answer: Here is an example: This is the…
Delphi

Detecting tab key press

Author: Embarcadero USA Question and Answer Database FAQ2060D.txt Detecting tab key press Category :VCL Platform :All Product :All 32 bit Question: Since the KeyPress and the KeyDown events do not get called for the tab key, how do I trap the tab key at the…
Delphi

Extracting Icons

Author: Embarcadero USA Question and Answer Database FAQ1778D.txt Extracting Icons Category :Windows API Platform :All Product :All 32 bit Question: How can I use the undocumented ShellAPI function ExtractIconEx() to extract the small and large icons from a given file? Answer: You can use the undocumented ShellAPI function ExtractIconEx() to extract both large and small icons…
Read more
Delphi

Using WM_COPYDATA.

Author: Embarcadero USA Question and Answer Database FAQ1525D.txt Using WM_COPYDATA. Category :Windows API Platform :All Product :All 32 bit Question: How can I use the WM_COPYDATA message to pass information between 16-bit and 32-bit…
Delphi

Preventing multiple application instances

Author: Embarcadero USA Question and Answer Database FAQ1355D.txt Preventing multiple application instances Category :Windows API Platform :All Product :All 32 bit Question: How can I guarantee that only one instance of my program executes? Is it possible to restore the previous instance and shut down if I start more than one instance? Answer: Under Win16, you can check the value…
Read more
Delphi

Changing the papersize of a print job.

Author: Embarcadero USA Question and Answer Database FAQ603D.txt - Changing the papersize of a print job. Category :Printing Platform :All-32Bit Product : Question: How can I change the papersize of my print job? Answer: One way to change printer settings at the start of a print job is to change the printer's devicemode structure. See: TDEVMODE in the Delphi 1.02 help file or…
Read more