Virtual Buffer Panning

If you create a virtual buffer that is taller or wider than the client size (or perhaps both taller and wider), it's possible to perform virtual buffer panning. To achieve a panning effect, you generally just call fg_vbpaste() iteratively such that the source region in the virtual buffer changes gradually, while the destination region in the client area stays the same. Depending on the size of the scrolling region, you may need to include a delay factor between fg_vbpaste() calls so the area being scrolled doesn't appear to jump immediately to its ultimate destination.

<< Prev

Next >>

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.