How to Define a Project Catalog

Previous Next

A catalog or project catalog is a pane containing a tree view, or several tree views on tab pages.

Catalogs are permanently docked in the left-hand edge of the application window.

They open, resize and close along with the application window.

Catalogs can be switched on and off. To hide a catalog, click the Close button in the top-right corner of the catalog pane. To show a catalog, you must add a menu item as described below.

The USoft Windows Designer has a catalog.

NOTE: If you have difficulties creating a tree view, please see the item: "How to Insert a Tree View".

To define a project catalog:

1.In the Windows Designer Catalog, find the Catalog dialog box.
2.Create a subclass MyCatalog of the Catalog dialog box.
3.Page 1 of MyCatalog contains a tree view with one tree view node. This tree view node is the root node of the tree view. Insert as many tree view nodes as you need.
4.Define the contents of the tree view.
You can enhance the tree view with popup menu's, overlay conditions and icons.
5.On Tab 1 of MyCatalog, you can insert another tab page, with another catalog tree view, and so on.
6.From the menu bar, choose File, Edit Application.
7.Set the Catalog property to MyCatalog.
8.Add a Menu Line to the Menu Page of your choice (the standard View menu is recommended), and set the Prompt property to "Show Catalog" and the Script property to:

ShowCatalog('True')

This menu option ensures that you can re-open the catalog if is currently hidden. Alternatively, you could set the Script property to:

CatalogToggle()

This menu option will toggle the display of the catalog on and off.
9.Save your changes.