Delphi

Making "Stay-on-top-forms" do want you want

Author: Embarcadero USA Delphi supports this type of forms by providing the FormStyle property for the TForm class. All you have to do is to set this property to fsStayOnTop. So why did I write this article? Well, there are a few things to consider: Using fsStayOnTop causes flickering of the form, because it recreates the window handle. If you have a Stay-On-Top-Form (ok, we’ll call…
Read more
News

The Observer Pattern

Author: Joanna C1415 Introduction When we use Delphi to design forms and data modules, every time we place a component on the designer, several things change: the form now shows an appropriate representation of the component, the object inspector changes to show the…
Delphi

Playing WAV and MIDI files Using DirectX Audio with Delphi

Author: Embarcadero USA DirectX Overview Conducting a survey about what game programming API used by most of game softwares running on PC, I am sure that, DirectX will be on top list. Nowdays, DirectX had become a mature API for game programming on Windows platform. It makes game developer’s life easier. In old days of game programming history, game…
Read more
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

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 applications? Answer: The following example shows how to use the WM_COPYDATA message to send a record containing data between a 16-bit and 32-bit…
Read more
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…
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