< Prev | The Online Module Library | Next >

  Module: zoom  


                           
Task:         zoom (Int x, Int y, Float mag)

Description:  Zooms into the specified x,y location
              on your screen

Parameters:   x,y: the specified location
              mag: the magnification of the zoom
__________________________________________________________

Task:         unzoom

Description:  Undoes the previous zoom operation

parameters:   (none)

Module Source Listing


Example

In the following example program, use your mouse to zoom in (or out) on any part of the image. Hold down the left (or right) mouse button to zoom forward (or backward). After zooming has finished, release the button to unzoom back to normal size. Press the "Esc" key to quit.

Example Program Source Listing

(The above program assumes that you've placed the module into your Global Append Library.)


How To Download The Module
Into Your Local Append Library

If you're feeling ambitious and have nothing better to do, you could just copy
the source listing by hand! However, there is a much easier way to do it:

  1. Copy the source listing into the Windows Clipboard

  2. Paste the Clipboard into a new text document in your project's "Library" folder

  3. Change the name of that new text document to the module's name

The module is now in your Local Append Library.

After the module has been placed into your Local Append Library, you can
either just leave it there, or you can transfer it into your Global Append Library:

How To Transfer The Module From Your Local
Append Library Into Your Global Append Library

  1. Drop the module's text file onto the "Librarian.exe" file

  2. Click "Win" when you are asked to select the intended universe

The module is now in your Global Append Library.




  [ Webmaster | FAQ's | Home Page | Contact Us ]

Copyright 2012 SiMPLE CodeWorks, Inc. All rights reserved.