Folder Class

A folder control is a special container that has one or more sheets. A sheet is the same as a GroupBox control, in that it holds a series of painted controls. One sheet only is visible at any time, but tabs for each sheet are displayed at the top of the folder or at a user-specified edge. These tabs can be clicked to make the selected sheet visible. When the user clicks on a tab, the corresponding sheet of the folder is displayed (that is, both the click and the sheetChg event methods occur). A specific sheet can also be selected by using the keyboard if the caption of the sheet includes an accelerator sequence (for example, keying Alt+C selects the sheet labeled &Customers).

A folder control provides the following standard behavior.

The Folder control uses the same area of the screen for multiple sheets, with the user and developer able to select the sheet that is visible.

For a form defined as a Web page, the folder control does not directly generate HTML, but the sheets of the folder are arranged horizontally and vertically.

The Folder control provides the following features.

For a Folder control with the tabsStyle property set to Folder.TabsStyle_Buttons, tabs are drawn using the skin of the Button control if the application has defined a button skin. As the Folder class is a subclass of the Control class, it inherits all of the properties and methods defined in the Control class and the Window class. In the JADE Painter, a folder has two sheets by default. Deleting a sheet also deletes all controls on that sheet.

For details about the support of mouse wheel requests to scroll up, down, or across a folder control, see "Window Class", earlier in this document.

To add more sheets

  1. Select the folder.

  2. Click the sheet button.

  3. Click on the tabs area of the folder.

To display a specific sheet

Controls can then be painted on that sheet in the normal way.

The sheets in the folder are ordered according to their tabIndex values.

For a summary of the constants, properties, methods, and events defined in the Folder class, see "Folder Class Constants", "Folder Properties", "Folder Methods", and "Folder Events", in the following subsections.