Logo Delphi Developer Days 2011

Menu for Development

Site Menu
Delphi 2010 Handbook
Delphi 2009 Handbook
Delphi 2007 Handbook
Mastering Borland Delphi 2005
Essential Pascal
Essential Delphi
Buy Books Online
Code Repository
Newsgroups
White Papers
Tools
Conferences
Training
Delphi Links
Contact Marco

My Other Sites
Italian Site (www.marcocantu.it)
Developers Newsgroups Browser (dev.newswhat.com)
My town (www.piazzacavalli.net)
the delphi search
Wintech Italia (my company)

Advertising
Home My Blog Books My Bookstore Development Links Marco


Home: Code Repository: Mastering Delphi 6

Chapter 11 - Project ActiveB

Project Structure

ActiveB.dpr
program ActiveB;

uses
  Forms,
  ActiveF in 'ActiveF.pas' {Form1};

{$R *.RES}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.
ActiveF.pas
unit ActiveF;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
  StdCtrls, MdActiveBtn;

type
  TForm1 = class(TForm)
    MdActiveButton1: TMdActiveButton;
    MdActiveButton2: TMdActiveButton;
    MdActiveButton3: TMdActiveButton;
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.DFM}

end.
ActiveF.dfm
object Form1: TForm1
  Left = 192
  Top = 107
  Width = 314
  Height = 340
  Caption = 'Active Button Demo'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object MdActiveButton1: TMdActiveButton
    Left = 72
    Top = 40
    Width = 153
    Height = 49
    Caption = 'MdActiveButton1'
    TabOrder = 0
  end
  object MdActiveButton2: TMdActiveButton
    Left = 72
    Top = 104
    Width = 153
    Height = 57
    Caption = 'MdActiveButton2'
    TabOrder = 1
  end
  object MdActiveButton3: TMdActiveButton
    Left = 72
    Top = 176
    Width = 153
    Height = 57
    Caption = 'MdActiveButton3'
    TabOrder = 2
  end
end