home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 January
/
Pcwk0198.iso
/
Dcomplib
/
ASSISTNT.LZH
/
FORM.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1997-03-16
|
2KB
|
106 lines
unit Form;
interface
{$Ifdef win32}
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, ExtCtrls, Assi32, Assi16 ;
{$else}
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, ExtCtrls, Assi16 ;
{$endif}
type
TForm2 = class(TForm)
Assistent1: TAssistent;
ABox8: TABox;
Label6: TLabel;
ABox9: TABox;
Label7: TLabel;
ABox10: TABox;
Label8: TLabel;
ABox12: TABox;
Label10: TLabel;
ABox1: TABox;
Image1: TImage;
ABox2: TABox;
Label1: TLabel;
ABox3: TABox;
Label2: TLabel;
AGroupBox1: TAGroupBox;
Edit1: TEdit;
ABox4: TABox;
Memo1: TMemo;
ABox5: TABox;
Label3: TLabel;
AGroupBox2: TAGroupBox;
Button1: TButton;
AGroupBox3: TAGroupBox;
CheckBox1: TCheckBox;
CheckBox2: TCheckBox;
CheckBox3: TCheckBox;
ABox6: TABox;
Label4: TLabel;
ABox7: TABox;
Label5: TLabel;
ABox11: TABox;
Label9: TLabel;
ABox13: TABox;
Label11: TLabel;
procedure Button1Click(Sender: TObject);
procedure CheckBox1Click(Sender: TObject);
procedure CheckBox2Click(Sender: TObject);
procedure CheckBox3Click(Sender: TObject);
procedure Assistent1HelpClick(sender: TAssistent; page: Integer);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form2: TForm2;
implementation
{$R *.DFM}
procedure TForm2.Button1Click(Sender: TObject);
begin
if assistent1.page=0 then
begin
showmessage('You have pressed the "Click me!" Button in Dialog mode.');
end
else
begin
showmessage('You have pressed the "Click me!" Button in Assistent mode.'+#13+
'Assistent will jump to page 4!');
Assistent1.page:=4;
end;
end;
procedure TForm2.CheckBox1Click(Sender: TObject);
begin
assistent1.showhelpbutton:=checkbox1.checked;
end;
procedure TForm2.CheckBox2Click(Sender: TObject);
begin
assistent1.showchangebutton:=checkbox2.checked;
end;
procedure TForm2.CheckBox3Click(Sender: TObject);
begin
assistent1.showassistentok:=checkbox3.checked;
end;
procedure TForm2.Assistent1HelpClick(sender: TAssistent; page: Integer);
begin
showmessage('You have pressed the Help-Button');
end;
end.