WinStudio
Dragging and Dropping Collection Properties as Components on Forms
To drag and drop a property from a collection as a component on a form:
- With a form open, enter Design
Mode.
- In the Form properties
dialog, select the Collections
tab.
- Expand the collection that contains the property you want to add
as a component.
- Drag the property over the form.
- Drop the property in an appropriate area:
- If you drop the property in a detail area, a static and edit
box are created. The point where the drop is initiated is the
left side of the edit box, and the static is created to the left
of that point.
If the IDO property contains a list of properties, or if the
property class extension contains a list source, a combo box is
created.
The IDE then applies "arrange rows" to modify the
size and alignment of the components.
If the form contains a form grid, that is, it is a multi-pane
form, and if the form grid is bound to the same component as the
IDO property, then a grid column component is also added at the
end of the grid.
- If you drop the property into a grid - either into a standard
grid on a form or into the left grid pane of a multi-pane form
- a grid column component is added to the end of the grid if the
grid is bound to the same collection as the IDO property. If the
grid is not bound to the same collection, no column is created.
- After the drag and drop is complete, use the Form
Property Editor to edit the properties of the new component,
as needed.
NOTES:
- If the property or property class extension contains a caption,
this caption is shown in the grid and static.
- If the Edit component type is not appropriate for the property,
change the component type after the drag and drop is complete. For
example, a property with a True/False value could use the CheckBox
component type.
- The name of the component is in the format propertynameGridCol,
propertynameEdit, and propertynameStatic. If a component
with that name already exists, an incrementing number is added to
the end of the name.
Related Topics
Copy/Paste a Component
Cut/Paste a Component
Delete a Component
Edit a Component
Enter and Exit Design Mode
Move a Component
Move or Resize with Snap-to-Grid
Save, Cancel,
or Undo Changes in Design Mode
Select and Deselect Components
Type, WinStudio Component
Property
Add a Component to a Form