home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
tegl_ii
/
intro
/
button3.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-16
|
944b
|
41 lines
{-- button2.pas}
{$F+}
USES moreicon,teglunit,teglmain;
function Disk35event(frame: ImageStkPtr; mouse: MsClickPtr): Word;
BEGIN
{-- if true then the button has been released }
if VisualSquareButtonPress(frame,mouse) then
begin
{-- this will pop the button back up }
ReleaseSquareButton(frame,mouse);
end;
END;
function Diskevent(frame: ImageStkPtr; mouse: MsClickPtr): Word;
BEGIN
{-- if true then the button has been released }
if VisualSquareButtonPress(frame,mouse) then
begin
{-- this will pop the button back up }
ReleaseSquareButton(frame,mouse);
end;
END;
BEGIN
easytegl;
easyout;
PushImage(0,09,39,49);
DefineSquareButtonClick(stackptr,0,0,39,39,5,5,@ImageDisk,diskevent);
PushImage(0,49,39,89);
DefineSquareButtonClick(stackptr,0,0,39,39,5,5,@ImageDisk35,disk35event);
TeglSupervisor;
END.