RAD Studio
ContentsIndex
PreviousUpNext
Rubber Banding Example

This example describes the details of implementing the "rubber banding" effect in an graphics application that tracks mouse movements as the user draws a graphic at runtime. The example code covered in this topic is taken from a sample application located in the Demos\Doc\Graphexdirectory. The application draws lines and shapes on a window's canvas in response to clicks and drags: pressing a mouse button starts drawing, and releasing the button ends the drawing. 

To start with, the example code shows how to draw on the surface of the main form. Later examples demonstrate drawing on a bitmap. 

The following topics describe the example:

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!