Home

  About me

  Links

  Contact me

  Disclaimer

  Impressum

Products


  - mv_Menu

  - Color-TV

  - db-Mutex

  - Form-Factor

  - OL-Plus package

  - URL-Download

  - Drop-Target

  - VdB_Mail

The Color_TV (it's not a television)

The treeview can be used in many situations, it is fast, robust and easy to use. However, there is always room for improvements. A fellow programmer in the German dbase newsgroup had the need for colored tree-items (the bold property to highlight certain items wasn't enough for him ) Indeed a very interesting idea ! Out came this class...

It is a subclass of the Tree-View and a subclass of the Tree-Item controls and makes it very easy to change the color of an item on the fly (or in the constructor). As with the wheelgrid-class, I tried to write the code in a way, that almost no change in the source code is necessary. Change treeview( ) to ctreeview( ) here and change treeitem( ) to ctreeitem( ) there, that's all. If you want the items colored, just add one line of code :

form.tv1.treeitem1.setcolor(0xFF00FF)  

or do it in the (overloaded) constructor: there are two possibilities

form.tv1.t1 = new ctreeitem(form.tv1 , c_name , n_color)  or

form.tv1.t1 = new ctreeitem(form.tv1 , n_color)

These are custom classes written in dBL-Code and provided as  .co-files (for free). If you find the class useful, please consider buying the source code for 40,- Euro.

Fully functional .co files : These are the .co files with no restrictions. Contains a sample form to show the usage.

The Source code : this is the source code for the cTreeView and cTreeItem. The .cc files  for  40,- EUR

Web site and all contents © Copyright Marc Van den Berghen 2008, All rights reserved.