CADability dotNET
The IShowProperty type exposes the following members.
Methods
Name | Description | |
---|---|---|
Added |
Called when the entry was added to the control center or to a parent entry. The parameter
represents the tree view object to which the entry was added. Each Added is later matched by a call to Removed(IPropertyTreeView).
| |
ChildSelected |
Called when a child entry of this entry was selected.
| |
FocusableControls |
Will be called to get the focusable controls of the right hand side of the entry.
| |
GetContextMenu |
Auf einen Label wurde rechts geklickt. Erwartet wird das zugehörige ContextMenu.
Wird nur aufgerufen, wenn LabelType das Flag ContextMenu gesetzt hat.
Returns the context menu for this entry. Will only be called when ContextMenu
is specified in the LabelType property.
| |
GetValueControl |
Returns the Control which represents the right hand side of the entry.
Is only required for entries of type SimpleEntry
or OwnerDrawEntry. The Control may contain
other controls. It is responsible to provide visual feedback to the state of the object
it represents
| |
LabelChanged | ||
OnDragDrop |
Will be called when a windows "drag and drop" operation drops in the space of this object.
You may modify the drgevent parameter, especially the Effect.
| |
OnDragEnter |
Will be called when a windows "drag and drop" operation enters the space of this object.
You may modify the drgevent parameter, especially the Effect.
| |
OnDragLeave |
Will be called when a windows "drag and drop" operation leaves the space of this object.
| |
OnDragOver |
Will be called when a windows "drag and drop" operation moves over the space of this object.
You may modify the drgevent parameter, especially the Effect.
| |
OnEnterPressed |
Alt+Enter was pressed in the controlcenter while this entry was selected
| |
OnSpecialKey |
Will be called when special keys are pressed (e.g. Esc, Enter or PgUp/Down)
| |
Opened |
Notifies the item that its subitems will be shown (IsOpen==true) or that
the treeview collapses the subitems (IsOpen==false). The Item should fire the
StateChangedEvent event with the appropriate parameters.
| |
Refresh |
Forces the entry to refresh its contents
| |
Removed |
Matches the calls to Added(IPropertyTreeView). A good place to disconnect events and free resources.
| |
Select |
Forces this item to be selected in the treeview. The item must be visible.
| |
Selected |
Called whent the entry was selected.
| |
SetFocus |
Will be called when the entry got the focus.
| |
SetTabIndex |
Do not use anymore.
| |
ShowOpen |
Opens this item to show the subentries of this item in the treeview, that contains this IShowProperty object.
respectively closes or collapses this item to hide the subentries.
| |
UnSelected |
Called whent the entry was unselected.
|
Properties
Name | Description | |
---|---|---|
EntryType |
Returns the type of the entry, see ShowPropertyEntryType.
| |
HelpLink |
Returns the help link for the help control.
| |
Hidden |
If an IShowProperty object is hidden, it will not appear in the TreeView
of the control center. Most Properties are not hidden by default.
| |
InfoText |
Returns the text for the tooltip to display when the mouse cursor rests on the label.
| |
LabelText |
Returns the label text, which is usually displayed on the left side of the control.
| |
LabelType |
Returns the type of the label, see ShowPropertyLabelFlags.
| |
OwnerDrawHeight |
Returns the height of this entry if it is ownerdrawn.
| |
ReadOnly |
If an IShowProperty object is read only, its value should be fixed. The subProperties should also be read only.
| |
SubEntries |
Returns the array of subentries to this entry.
| |
SubEntriesCount |
Returns the number of subentries if any or 0 if none.
|
Events
Name | Description | |
---|---|---|
StateChangedEvent |
Event that is fired when the state of this entry changed, e.g. the entry was selected.
|