TreeView Professional: Example #2

To view the applet tag in use above, right click inside this frame and choose View Source

This example copies its contents from Example #1, but looks a little different. We've changed the BgColor, TextColor and Font to start with. The BorderColor and SelectorBorderColor parameters have been left out: these both default to matching the BgColor so they're effectively removed. The OutlineColor is left to its default of matching the TextColor.

We've also set UseHandCursor to 'yes'. The InitialSelect parameter is included, specifying that Item31 should be selected when the applet starts. Because Item31 is a folder it is automatically expanded; its parent folder is also expanded so that Item31 will be visible. The AutoCollapse parameter is set to 'yes' ensuring that unused branches are closed whenever an item is selected.

Sounds are switched on in this example. Finally, we've set Mode to 'images' and specified the name of an image file containing the 3 images to be used (for closed folders, open folders, and pages) in the SingleImage parameter.