How to Add a Search option to a Tree View

Previous Next

You can add a Search option to the right-mouse menu (the context menu) of your tree view. The result will be like the Search option offered in the Catalog tree view in USoft Windows Designer or USoft Web Designer.

To add a Search option to the context menu of your tree view:

1.Make sure that the tree view node level where you want the new Search option to appear has a context menu; if it does not, create a Menu Page first, and connect it to the tree view node by setting that tree view node's "Popup Menu Page" property to the name of the Menu Page.
2.Add a menu option to the menu page.
3.Open the Property Inspector for the menu option and set the following property settings for it:

Accelerator: Ctrl + F

Name: Search ...

Script: search()

Bitmap: Find.bmp

See Also:

How to Define a Menu Page and its Options

or, from the example scenario "Creating a Project Catalog":

How Menu Functionality Was Added