home *** CD-ROM | disk | FTP | other *** search
-
- {----------------------------------------------------------------------}
- { TURBO Pascal Window Location Routines }
- {----------------------------------------------------------------------}
- { }
- { These routines and constants give the four corners of the current }
- { Turbo window: }
- { }
- { Lower right-hand corner: (Lower_Right_Column, Lower_Right_Row) }
- { Upper left_hand corner: (Upper_Left_Column, Upper_Right_Column) }
- { Warning: This implementation is specific to }
- { MS-DOS Turbo Pascal Ver 2.00 }
- {----------------------------------------------------------------------}
-
- { Lower right corner of }
- { current TURBO window }
- Var
- Lower_Right_Column : Byte ABSOLUTE Cseg:$016A;
- Lower_Right_Row : Byte ABSOLUTE Cseg:$016B;
-
- Upper_Left_Column : Byte ABSOLUTE Dseg:$0156;
- Upper_Left_Row : Byte ABSOLUTE Dseg:$0157;
-
-
-
- {----------------------------------------------------------------------}
- { Mnu_Window --- Create a window on the screen }
- {----------------------------------------------------------------------}
-
- procedure Mnu_Window( X1, Y1 : Byte;
- X2, Y2 : Byte );
- { }
- { Procedure: Mnu_Window }
- { }
- { Purpose: Creates Window for menu. }
- { }
- { Cautions: Works only with Turbo Pascal V 2.0 !!! }
- { }
-
- begin { Mnu_Window }
-
- if ( X1 < X2 ) and ( Y1 <= Y2 ) then begin
- Upper_Left_Column := X1 - 1;
- Upper_Left_Row := Y1 - 1;
-
- Lower_Right_Column := X2;
- Lower_Right_Row := Y2;
- end
-
- end; { Mnu_Window }
-