home *** CD-ROM | disk | FTP | other *** search
- {-- Program to illustrate moving a one frame onto the top of another }
- {-- frame. }
-
- Uses
- TEGLIntr,
- TEGLUnit,
- TEGLMain;
-
-
- VAR fs : ImageStkPtr;
-
-
- BEGIN
-
- EasyTEGL;
- EasyOut;
-
- {-- create the first frame }
-
- PushImage(1,1,100,100);
- ShadowBox(1,1,100,100);
- FS := StackPtr; {-- stackptr always has the most recent frame }
-
- {-- then create the second frame }
- PushImage(50,50,150,150);
- ShadowBox(50,50,150,150);
-
- {-- since we haven't gone to the supervisor yet we must }
- {-- specifically display the mouse. }
- ShowMouse;
- {-- wait for a mouse click }
- WHILE Mouse_Buttons = 0 DO;
-
- {-- then move them around. }
- RotateStackImage(fs,StackPtr);
-
-
- TEGLSupervisor;
- END.
-