Tree View Object

back to main page

This object is built into VP Studio Shell. Click here to download VP Studio Shell samples.

Steps to include object into your project:

 

VP Studio Shell

Description

Create custom control with the name:

 

cl_tree_view

 

Edit Object properties using VP Studio Shell property editor.

You can define:

  • Font

  • Background color

  • Alignment

  • Name of the tree root

Preview object and compile application.

The parameters entered will be passed to the object in final application.

The same data will appear in your compiled application


Note: Tree View object classes are not compatible with previous version of Tree View Object.
If you are user of VP Studio Setup utility - please use follow instruction below.

To include Tree View Object - open your project.inc file with VP Studio Setup utility and checkout necessary options. Please save your changes and open Visual Prolog project.

This is tree browser implemented as an Visual Prolog Object custom control.

To include Tree View Object - open your project.inc file with VP Studio Setup utility and checkout necessary options. This will include necessary files.

Please save your changes and open Visual Prolog project.

Open your Visual Prolog project and create custom control with the name "Class_catalog_view"

Insert the following code before creating of the custom control (e_create event of the Window)

BROWSELIST_ITEM = bi(visited,"Tree Root",node(open,YOUR_TREE),idi_computer),

CATALOG_DATA = catalog_browsetree(YOUR_TREE,catalog_action_callback),

TreeData = cast(long,CATALOG_DATA),

SystemObject = system_object::new(_Win),

SystemObject:save_object_ref("catalog_initial_data",TreeData),

Code above creates necessary links between custom control and window handler.

Please refer to Tree Manipulator sample for more details.


Copyright 1999-2002 EDMGROUP, Australia

Last Updated: April 17, 2002