How Can I Add Pages to a TTabbedNotebook at Run-time?

Posted December 15th @ 1:54 pm by m3Rlin

This example shows you how to add a page to a TTabbedNotebook at run-time. It also shows how to add controls to it. Original code by Graham Mainwaring.

procedure AddPage;
var
btnNew : TButton;
NewPage: TTabPage;
wNumber: Word;
begin
{ [...]

How to Print TStrings

Posted December 15th @ 7:29 am by m3Rlin

The TMemo and TListBox components don’t have any print functions although sometimes they would come in very handy. Well, here’s the solution. All you have to do is open a text file on the printer and print anything you want.

uses
Printers;

var
iI [...]

Next Entries »