home *** CD-ROM | disk | FTP | other *** search
- {-- 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.
-
-
-