home *** CD-ROM | disk | FTP | other *** search
- {$F+} { -- far code model is required for any functions that }
- { -- are to be used as Events }
-
- Uses
- TEGLFont,
- TGraph,
- TEGLIntr,
- TEGLUnit,
- TEGLMain,
- TEGLMenu,
- SenseMs,
- DebugUnt;
-
-
- VAR
- om1, om2 : OptionMPtr;
-
-
- FUNCTION GetMsSense(FS:imagestkptr; Ms: msclickptr) : WORD;
- BEGIN
- SetMouseSense(fs^.x,fs^.y);
- GetMsSense := 1;
- END;
-
-
-
- BEGIN
- EasyTEGL;
-
- { -- insert the example code here }
- { -- press Ctrl-Break to exit program }
-
- om1 := CreateOptionMenu(@Font14);
- DefineOptions(om1,'~O~pen ',true,NilUnitProc);
- DefineOptions(om1,'-',false,NilUnitProc);
- DefineOptions(om1,'~Q~uit ',true,Quit);
-
- om2 := CreateOptionMenu(@Font14);
- DefineOptions(om2,'~M~emory',true,ShowCoordinates);
- DefineOptions(om2,'~M~ouse Sensitivity',true,GetMsSense);
-
- CreateBarMenu(0,0,getmaxx);
- OutBarOption(' ~F~ile ',om1);
- OutBarOption(' ~U~tility ',om2);
-
- { -- control is then passed to the supervisor }
-
- TEGLSupervisor;
- END.
-