 |
| How to put a vertical text scrolling on the form (a movie cast) |
User rating: 0/10 (0 votes) | |
|
|
 |
 |
| Before you begin: |
 |
See also:
Scrolling text on the form horizontally (a newsreel)
Shaking VFP form controls
Playing AVI on _screen
Displaying animated images
Form Magnifier
|
 |
 |
| |
| |
Members area. Log in to view this example. |
|
| |
|
|
|
|
|
 |
User rating: 0/10 (0 votes) | |
| 6659 bytes Created: 2002-12-23 15:25:30 Modified: 2011-12-10 09:20:22 Visits in 7 days: 128 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
This is a simple example of double buffered video output.
The first buffer, which is the largest one, contains all lines of text printed as a long column.
The second buffer is of size of the output frame. Triggered by each timer event, the program code:
- draws a gradient background ( GradientFill )
- puts some stars ( Polygon )
- copies a rectangle part with text lines from the first buffer ( BitBlt )
After this the second buffer is drawn completely, and it is copied to the output frame on the form with the BitBlt function.
The timing is important for creating a smooth scrolling. Fortunately there are not too many FoxPro commands involved in this cycle, mostly Win32 functions do the job. So the performance is almost the same as it could be for a similar VB code. |
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|