~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to docs/mmouseex/mouse6.pp

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{example for SetMouseXRange, SetMouseYRange and SetMouseWindow}
2
 
 
3
 
Uses MsMouse, Crt;
4
 
 
5
 
Begin
6
 
  If MouseFound Then
7
 
    Begin
8
 
      SetMouseXRange(20*8,50*8);  {charracter width and height = 8 pixels}
9
 
      SetMouseYRange(10*8,15*8);
10
 
 
11
 
{the two lines of code have exactly the same effect as
12
 
 SetMouseWindow(20*8,10*8,50*8,15*8)}
13
 
 
14
 
      Writeln('Press any key to quit.');
15
 
      ShowMouse;
16
 
      While KeyPressed Do ReadKey;
17
 
      Readkey;
18
 
      While KeyPressed Do ReadKey;
19
 
      HideMouse
20
 
    End
21
 
End.
22