You are viewing articles in the System category &rarr


How to Print Text

Posted December 15th @ 9:01 pm by m3Rlin

This is the harder way to print text in Delphi If you want to do it the easier way check out tip 4.1. Well, if for some reasons you may want to print using the Windows API here’s the code:
Code 1:

uses
Printers, WinSpool;

var
aDriver, aPort, aPrinterName: array[0..255] of Char; { aDriver and [...]

How to Set / Remove the Form’s StayOnTop Style

Posted December 15th @ 8:58 pm by m3Rlin

To set or remove the form’s StayOnTop style you can just set the form’s FormStyle property. But this has side effects. For example: if you modify the form’s system menu using the Windows API. After the form’s style is changed the system menu will return to it’s normal state. You can get around this in [...]

« Previous EntriesNext Entries »