home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-03-04 | 1.3 KB | 50 lines | [TEXT/TPAS] |
- program flash;
- {$R-}
- {$U-} { turbo must be told not to include unnecessary units }
- {$D PasXCMD} { turbo must also be told to make an XCMD }
- (*
- flash -- a sample HyperCard external command.
- ⌐Apple Computer, Inc. 1987
- All Rights Reserved.
-
- Modified for Turbo Pascal by Brian Liebowitz
-
- You must install the DHDR resources called PasXFCN and PasXCMD
- into your copy of Turbo before compiling this XCMD. You must also
- have compiled the unit HyperXCMD and moved it into the Turbo progam,
- and the file XCMDGlue.inc must be accessible. After compiling,use
- ResEdit to change the ID from 300, and to copy the XCMD or XFCN into
- your stack or Hypercard.
-
- *)
-
-
- USES MemTypes, QuickDraw, HyperXCmd;
-
-
- PROCEDURE PasXCMD(paramPtr: XCmdPtr);
-
- VAR flashCount: LongInt;
- i: INTEGER;
- port: GrafPtr;
- str: Str255;
-
- {$I XCmdGlue.inc }
-
- BEGIN
- ZeroToPas(paramPtr^.params[1]^,str); { first param is flash count }
- flashCount := StrToNum(str);
- GetPort(port);
- FOR i := 1 TO flashCount DO
- BEGIN
- InvertRect(port^.portRect);
- InvertRect(port^.portRect);
- END;
- END;
-
- BEGIN
- END.
-
- (*Remember to change the ID of this resource from 300*)
-
-