home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Shareware for Win 95
/
Chip-Shareware-Win95.bin
/
ostatni
/
delphi
/
ruzne
/
rzcomps.exe
/
DEMO
/
DEMOMAIN.PA_
/
DEMOMAIN.PA
Wrap
Text File
|
1996-10-18
|
4KB
|
190 lines
unit Demomain;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, ExtCtrls, Tabs, RzPanel, Menus, StdCtrls, RzCmboBx,
RzTrkBar, RzLabel, RzBorder, Buttons;
type
TFrmMain = class(TForm)
RzPanel1: TRzPanel;
RzBorder1: TRzBorder;
Image1: TImage;
RzLabel2: TRzLabel;
Image2: TImage;
RzLabel3: TRzLabel;
ImgToolbar: TImage;
LblToolbar: TRzLabel;
LblSplitter: TRzLabel;
LblLabel: TRzLabel;
LblPanel: TRzLabel;
LblData2: TRzLabel;
LblListComps: TRzLabel;
LblProgress: TRzLabel;
LblMail: TRzLabel;
LblData: TRzLabel;
LblExit: TRzLabel;
ImgSplitter: TImage;
ImgLabel: TImage;
ImgPanel: TImage;
ImgListComps: TImage;
ImgProgress: TImage;
ImgMail: TImage;
ImgData: TImage;
ImgData2: TImage;
ImgExit: TImage;
LblDemoVersion: TRzLabel;
procedure BtnLabelClick(Sender: TObject);
procedure BtnToolbarClick(Sender: TObject);
procedure BtnMailClick(Sender: TObject);
procedure BtnSplitterClick(Sender: TObject);
procedure BtnListCompsClick(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure BtnExitClick(Sender: TObject);
procedure BtnPanelClick(Sender: TObject);
procedure BtnProgressClick(Sender: TObject);
procedure BtnDataClick(Sender: TObject);
procedure BtnData2Click(Sender: TObject);
procedure RzPanel2Enter(Sender: TObject);
procedure RzPanel2Exit(Sender: TObject);
procedure MouseEnter(Sender: TObject);
procedure MouseLeave(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FrmMain: TFrmMain;
implementation
{$R *.DFM}
{$IFDEF WIN32}
{$R HANDCUR.R32}
{$ELSE}
{$R HANDCUR.R16}
{$ENDIF}
uses
LabelFrm, PanelFrm, TbarFrm, MailFrm, SplitFrm, ListFrm,
ProgFrm, DataFrm, DataFrm2;
procedure TFrmMain.FormCreate(Sender: TObject);
const
crHand = 34;
begin
{$IFNDEF WIN32}
MsgDlgButtonStyle := bsNew;
MsgDlgGlyphs := False;
{$ENDIF}
{$IFDEF WIN32}
LblDemoVersion.Caption := '32-bit Demo';
{$ENDIF}
Screen.Cursors[ crHand ] := LoadCursor( HInstance, 'RZHANDCURSOR' );
ImgSplitter.Cursor := crHand;
LblSplitter.Cursor := crHand;
ImgToolbar.Cursor := crHand;
LblToolbar.Cursor := crHand;
ImgLabel.Cursor := crHand;
LblLabel.Cursor := crHand;
ImgPanel.Cursor := crHand;
LblPanel.Cursor := crHand;
ImgListComps.Cursor := crHand;
LblListComps.Cursor := crHand;
ImgProgress.Cursor := crHand;
LblProgress.Cursor := crHand;
ImgMail.Cursor := crHand;
LblMail.Cursor := crHand;
ImgData.Cursor := crHand;
LblData.Cursor := crHand;
ImgData2.Cursor := crHand;
LblData2.Cursor := crHand;
ImgExit.Cursor := crHand;
LblExit.Cursor := crHand;
end;
procedure TFrmMain.BtnLabelClick(Sender: TObject);
begin
FrmLabel.ShowModal;
end;
procedure TFrmMain.BtnToolbarClick(Sender: TObject);
begin
{ FrmToolbar := TFrmToolbar.Create( Application );}
FrmToolbar.ShowModal;
end;
procedure TFrmMain.BtnMailClick(Sender: TObject);
begin
FrmMail.ShowModal;
end;
procedure TFrmMain.BtnSplitterClick(Sender: TObject);
begin
FrmSplitter.ShowModal;
end;
procedure TFrmMain.BtnListCompsClick(Sender: TObject);
begin
FrmListComps.ShowModal;
end;
procedure TFrmMain.BtnExitClick(Sender: TObject);
begin
Close;
end;
procedure TFrmMain.BtnPanelClick(Sender: TObject);
begin
FrmPanelEditor := TFrmPanelEditor.Create( Application );
FrmPanelEditor.ShowModal;
end;
procedure TFrmMain.BtnProgressClick(Sender: TObject);
begin
FrmProgress.ShowModal;
end;
procedure TFrmMain.BtnDataClick(Sender: TObject);
begin
FrmData1 := TFrmData1.Create( Application );
FrmData1.ShowModal;
end;
procedure TFrmMain.BtnData2Click(Sender: TObject);
begin
FrmData2 := TFrmData2.Create( Application );
FrmData2.ShowModal;
end;
procedure TFrmMain.RzPanel2Enter(Sender: TObject);
begin
LblToolbar.Font.Color := clRed;
end;
procedure TFrmMain.RzPanel2Exit(Sender: TObject);
begin
LblToolbar.Font.Color := clWhite;
end;
procedure TFrmMain.MouseEnter(Sender: TObject);
begin
TRzLabel( Sender ).Font.Color := clPurple;
end;
procedure TFrmMain.MouseLeave(Sender: TObject);
begin
TRzLabel( Sender ).Font.Color := clWhite;
end;
end.