Class Palette

The Class Palette allows you to drag and drop various objects onto a component's visual design canvas. It is also used to determine which libraries are used by the workspace.

The Context Menu

The class palette has an extensive context menu that allows you to:

See Class Palette – Context Menu for more information on these features.

Dragging and Placing Controls

The primary purpose of the class palette is to drag and drop objects onto a component’s visual designer. The classes are maintained in a grouped list. Each group may be expanded or collapsed by clicking on the group bar. By default the first group is always expanded and all other groups are closed. Clicking on any closed group expands it showing all classes in the group. Clicking on an opened group collapses it.

To drag and drop a control, click and hold the mouse cursor over the name for the desired class of control. The button will depress and the mouse cursor will change as you move it. The cursor has two shapes, "No Enter," meaning you cannot drop the control at that point, and "Cross-Hairs," meaning that you can drop the control. To drop the control, simply release the mouse button at the desired location, and the control will have its top-left location at the cross-hairs. The size of the control will be determined automatically.

This drag and drop behavior is the standard behavior of the class palette. The context menu allows you to select an alternate “Rearrange Class Palette” mode where classes can be moved within the class palette itself.

Class Filtering

Classes shown in the list are filtered based on whether the current project being edited is a Windows Application or a Web Application. The current project is the project indicated in the toolbar at the top of the Workspace Explorer panel.

When the current project is a Web Application, only “WebApp” classes and “common” classes are shown. When the project is a Windows application then only “Windows” and “common” classes are shown.

Whether a particular class is categorized as WebApp, Windows or Common is determined by the ClassLibrary meta-tag. Valid settings are: WebApp, Common, and Windows. Example:

{ ClassLibrary=WebApp }

Class cWebView is a cWebWindow



Class Documentation

You can easily assess the documentation for any DataFlex class (supplied with the system) by selecting the class and using the Class Help option at the bottom of the context menu (right mouse click).

See Also

Importing Active-X Controls

Web Service Client Class Generator

Docking Windows