home *** CD-ROM | disk | FTP | other *** search
- unit Chsdlg;
-
- { Program copyright (c) 1995 by Charles Calvert }
- { Project Name: LIFE }
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls, ExtCtrls, Buttons;
-
- type
- TChooseDlg = class(TForm)
- BCancel: TBitBtn;
- bOk: TBitBtn;
- Panel1: TPanel;
- CompChoose: TRadioButton;
- DiskLoad: TRadioButton;
- private
- { Private declarations }
- public
- { Public declarations }
- function ShowYourSelf(var Choice: Char): Boolean;
- end;
-
- var
- ChooseDlg: TChooseDlg;
-
- implementation
-
- {$R *.DFM}
-
- function TChooseDlg.ShowYourself(var Choice: Char): Boolean;
- begin
- ShowYourself := False;
- if ShowModal = mrCancel then Exit;
- if ChooseDlg.CompChoose.Checked then
- Choice := '1'
- else if ChooseDlg.DiskLoad.Checked then
- Choice := '3'
- else
- Choice := '2';
- ShowYourself := True;
- end;
-
- end.
-