Sei sulla pagina 1di 2

*set word wrap in Notepad for better view

Outlook style listbar control class, written entirely in Visual Foxpro


Update, source code, samples and builder included

Class description:
-class is based on Container
-listbar control can contain folders (groups) , displayed verticaly.
-each folder can contain a Buttons collection and its own background col
or
-large or small icons for buttons
-For each button, can be specified command to be executed when is select
ed
-rounded buttons, XP style, nice highlighting and 3D effects without aff
ecting performance
-Startup is very fast, Init time is 2-5 times less than in previous vers
ion
(can be 0.03 seconds or less for listbar object with 5 folders a
nd 50 buttons)
-buttons can be selected with keyboard
-Underline and Highlight effects for button captions
-Graphical Option group effect for buttons - button remain selected afte
r click
-Methods for remove folders or buttons at runtime

Run outlooklistbar.prg to see samples and to register builder for use with Desig
ners.

If class is open in Class Browser, all properties and methods have descr
iptions about where and how are used, default values, etc.
Code for this class is commented, so , if someone have the time and want
to figure how I've done something, or help me to make it better , please take a
look and send me your opinion.
Few words about builder. It is, in fact, a fake builder, because it don'
t change object selected in Designer to look like the one in builder, but genera
te code in Init() method to make it look that way. It is the best I can do, beca
use code for designed objects cannot be executed (methods addfolder(), addfolder
item() , etc.) I've tried other ways, like modified code for these methods with
designed object reference passed as parameter, but no succes (and only because V
FP don't know to save array properties of subclassed objects - and this class is
based on this type of property).
Please run option for register or unregister builder just after VFP star
tup , otherwise errors will be encountered

Note : because I've used _assign methods, this control work only with VFP6 and
7

Control is freeware, but if you want to send me some money,


certainly you will not be refused :) (I have spent some hours working o
n it)
For comments, suggestions or anything else,
my e-mail account is : dorin_vas@yahoo.com
Dorin Vasilescu
Str. Cimpul Linistii 1A
Arad - 2900
Romania

Potrebbero piacerti anche