home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Shareware for Win 95
/
Chip-Shareware-Win95.bin
/
ostatni
/
delphi
/
ruzne
/
rzcomps.exe
/
DEMO
/
SPLITFRM.PA_
/
SPLITFRM.PA
Wrap
Text File
|
1996-10-18
|
3KB
|
94 lines
unit Splitfrm;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, RzSpnEdt, RzSplit, ExtCtrls, RzPanel, RzRadGrp, StdCtrls,
FileCtrl, RzFilSys, RzLabel;
type
TFrmSplitter = class(TForm)
RzPanel1: TRzPanel;
GrpOrientation: TRzRadioGroup;
SpnSplitterWidth: TRzSpinEdit;
SpnColumns: TRzSpinEdit;
RzLabel1: TRzLabel;
RzLabel2: TRzLabel;
ChkRealTimeDrag: TCheckBox;
SplPreview: TRzSplitter;
LstDirs: TRzDirectoryListBox;
GrpVisible: TRzRadioGroup;
RzLabel3: TRzLabel;
RzDriveComboBox1: TRzDriveComboBox;
RzLabel4: TRzLabel;
Button1: TButton;
LstFiles: TRzFileListBox;
procedure SpnSplitterWidthChange(Sender: TObject);
procedure GrpOrientationClick(Sender: TObject);
procedure SpnColumnsChange(Sender: TObject);
procedure FormCreate(Sender: TObject);
procedure ChkRealTimeDragClick(Sender: TObject);
procedure GrpVisibleClick(Sender: TObject);
private
{ Private declarations }
procedure WMGetMinMaxInfo( var Msg : TWMGetMinMaxInfo ); message wm_GetMinMaxInfo;
public
{ Public declarations }
end;
var
FrmSplitter: TFrmSplitter;
implementation
{$R *.DFM}
uses
RzCommon;
procedure TFrmSplitter.WMGetMinMaxInfo( var Msg : TWMGetMinMaxInfo );
begin
Msg.MinMaxInfo^.ptMinTrackSize := Point( 470, 375 );
end;
procedure TFrmSplitter.SpnSplitterWidthChange(Sender: TObject);
begin
SplPreview.SplitterWidth := SpnSplitterWidth.IntValue;
end;
procedure TFrmSplitter.GrpOrientationClick(Sender: TObject);
begin
SplPreview.Orientation := TOrientation( GrpOrientation.ItemIndex );
end;
procedure TFrmSplitter.SpnColumnsChange(Sender: TObject);
begin
LstFiles.Columns := SpnColumns.IntValue;
end;
procedure TFrmSplitter.FormCreate(Sender: TObject);
begin
LstDirs.Hint := 'The RzDirectoryListBox'#13'supports long file names';
{$IFDEF WIN32}
LstFiles.Hint := 'The RzFileListBox supports'#13'multiple columns'#13'and displays the shell icons';
{$ELSE}
LstFiles.Hint := 'The RzFileListBox supports'#13'long file names and'#13'multiple columns';
{$ENDIF}
GrpOrientation.Hint := 'This is an RzRadioGroup'#13'with a custom border';
end;
procedure TFrmSplitter.ChkRealTimeDragClick(Sender: TObject);
begin
SplPreview.RealTimeDrag := ChkRealTimeDrag.Checked;
end;
procedure TFrmSplitter.GrpVisibleClick(Sender: TObject);
begin
SplPreview.UpperLeft.Pane.Visible := GrpVisible.ItemIndex in [ 0, 1 ];
SplPreview.LowerRight.Pane.Visible := GrpVisible.ItemIndex in [ 0, 2 ];
end;
end.