home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi 4 Bible
/
Delphi_4_Bible_Tom_Swan_IDG_Books_1998.iso
/
source
/
ONTOP
/
MAIN.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1998-04-13
|
821b
|
48 lines
unit Main;
interface
uses
SysUtils, Windows, Messages, Classes, Graphics, Controls,
Forms, Dialogs, Menus;
type
TMainForm = class(TForm)
MainMenu1: TMainMenu;
Demo1: TMenuItem;
Stayontop1: TMenuItem;
Exit1: TMenuItem;
procedure Exit1Click(Sender: TObject);
procedure Stayontop1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
MainForm: TMainForm;
implementation
{$R *.DFM}
procedure TMainForm.Exit1Click(Sender: TObject);
begin
Close;
end;
procedure TMainForm.Stayontop1Click(Sender: TObject);
begin
with Sender as TMenuItem do
begin
Checked := not Checked;
if Checked
then FormStyle := fsStayOnTop
else FormStyle := fsNormal;
end;
end;
end.