home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi 4 Bible
/
Delphi_4_Bible_Tom_Swan_IDG_Books_1998.iso
/
source
/
COMBOS
/
MAIN.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1998-04-13
|
1KB
|
60 lines
unit Main;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons;
type
TMainForm = class(TForm)
SimpleCB: TComboBox;
DropDownCB: TComboBox;
DropDownListCB: TComboBox;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
CancelBitBtn: TBitBtn;
OKBitBtn: TBitBtn;
CloseBitBtn: TBitBtn;
procedure CancelBitBtnClick(Sender: TObject);
procedure OKBitBtnClick(Sender: TObject);
procedure CloseBitBtnClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MainForm: TMainForm;
implementation
{$R *.DFM}
procedure TMainForm.CancelBitBtnClick(Sender: TObject);
begin
Close;
end;
procedure TMainForm.OKBitBtnClick(Sender: TObject);
var
S1, S2, S3: string;
begin
S1 := SimpleCB.Text;
S2 := DropDownCB.Text;
S3 := DropDownListCB.Text;
ShowMessage('Your selections are: ' +
S1 + ', ' + S2 + ', ' + S3);
end;
procedure TMainForm.CloseBitBtnClick(Sender: TObject);
begin
OKBitBtn.Click; { Simulate OK button click }
Close; { End program }
end;
end.