1
{example for SetMouseXRange, SetMouseYRange and SetMouseWindow}
8
SetMouseXRange(20*8,50*8); {charracter width and height = 8 pixels}
9
SetMouseYRange(10*8,15*8);
11
{the two lines of code have exactly the same effect as
12
SetMouseWindow(20*8,10*8,50*8,15*8)}
14
Writeln('Press any key to quit.');
16
While KeyPressed Do ReadKey;
18
While KeyPressed Do ReadKey;