home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Shareware for Win 95
/
Chip-Shareware-Win95.bin
/
ostatni
/
delphi
/
ruzne
/
rzcomps.exe
/
DEMO
/
TBARFRM.PA_
/
TBARFRM.PA
Wrap
Text File
|
1996-10-18
|
3KB
|
102 lines
unit Tbarfrm;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, Menus, RzSplit, RzPanel, ExtCtrls, RzStatus, Buttons,
StdCtrls, RzRadGrp, RzBorder, RzLabel;
type
TFrmToolbar = class(TForm)
Toolbar1: TRzToolbar;
RzStatusBar1: TRzStatusBar;
MainMenu1: TMainMenu;
File1: TMenuItem;
Close1: TMenuItem;
RzStatusPane1: TRzStatusPane;
RzClockStatus1: TRzClockStatus;
RzKeyStatus1: TRzKeyStatus;
RzKeyStatus2: TRzKeyStatus;
RzKeyStatus3: TRzKeyStatus;
RzResourceStatus1: TRzResourceStatus;
RzGlyphStatus1: TRzGlyphStatus;
PnlWorkspace: TRzPanel;
BtnToolbarEdit: TButton;
ChkShowDivider: TCheckBox;
RzLabel7: TRzLabel;
RzLabel8: TRzLabel;
RzLabel9: TRzLabel;
RzPanel1: TRzPanel;
RzLabel1: TRzLabel;
RzLabel2: TRzLabel;
RzLabel3: TRzLabel;
RzLabel4: TRzLabel;
RzLabel5: TRzLabel;
RzBorder1: TRzBorder;
RzLabel6: TRzLabel;
BtnDone: TButton;
procedure Close1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure BtnToolbarEditClick(Sender: TObject);
procedure ChkShowDividerClick(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
procedure WMGetMinMaxInfo( var Msg : TWMGetMinMaxInfo ); message wm_GetMinMaxInfo;
public
{ Public declarations }
end;
var
FrmToolbar: TFrmToolbar;
implementation
{$R *.DFM}
uses
TlbarFrm, RzCommon;
procedure TFrmToolbar.Close1Click(Sender: TObject);
begin
Close;
end;
procedure TFrmToolbar.FormCreate(Sender: TObject);
begin
ChkShowDivider.Enabled := NewStyleControls;
if NewStyleControls then
PnlWorkspace.BorderOuter := fsLowered
else
PnlWorkSpace.BorderOuter := fsPopup;
end;
procedure TFrmToolbar.BtnToolbarEditClick(Sender: TObject);
begin
FrmToolbarEditor.Top := Top + 80;
FrmToolbarEditor.ParentForm := Self;
FrmToolbarEditor.Toolbar := Toolbar1;
FrmToolbarEditor.ShowModal;
end;
procedure TFrmToolbar.ChkShowDividerClick(Sender: TObject);
begin
Toolbar1.ShowDivider := ChkShowDivider.Checked;
end;
procedure TFrmToolbar.FormClose(Sender: TObject; var Action: TCloseAction);
begin
{ Action := caFree;}
end;
procedure TFrmToolbar.WMGetMinMaxInfo( var Msg : TWMGetMinMaxInfo );
begin
Msg.MinMaxInfo^.ptMinTrackSize := Point( 568, 307 );
end;
end.