This article was brought to you by the guys from VDF-GUIdance.
For more DataFlex targeted articles see http://www.vdf-guidance.com


Scroll and TabPage samples

by Tony Mackay (Anasazi Software Inc.)

Summary

These are the scroll and tabpage examples which Tony showed at the 2003 Meet Me In St. Louis conference. They are neat examples on
- having a dbView that automatically scrolls to the activated forms
- managing tabpages, howto reorder them dynamically or how-to hide a page dynamically
Size: 93 KB Download
Date Created: 14/10/2003
Date Updated: 14/10/2003
Author: Tony Mackay (Anasazi Software Inc.)
Company: Anasazi Software Inc.


Scroll and TabPage samples


By Tony Mackay
These are the scroll and tabpage examples showed at the 2003 Meet Me In St. Louis conference.
Have you ever wondered how-to use the VertScrollBar class? Then check this out.

Basically the examples will show you how-to
  • create a dbView that automatically scrolls to the activated forms if the forms are not in the visible region of the dbView anymore.
  • managing tabpages, howto reorder them dynamically or how-to hide a page dynamically
  • pass variables by reference

But this is not all, in the same demo application you can also see how a viewbased solution has been rewritten into a subclassed solution.
The demo application contains an example of the srolling code implemented at viewlevel and another example implemented at classlevel.
Screenshot from the auto-scrolling view, the view has scrolled down.

The scroll demo has also implemented hooks into the normal navigation controls so that you can use the normal keyboard keys such as Page Up, Page Down, Tab, Shift-Tab, Home and End-keys.
The tabdialog demo
In this demo you can hide and unhide tabpages from the control area. You can also change the order in which the tabpages are shown as you can see in the example screenshot above.

Download



This code has been tested with VDF8.3

meetme.zip

Please read the readme.txt for details