Enum PropertyEntryType
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
The flags that describe an entry of the property page (Flags): what it is (a group title, a separator, an entry with sub entries), how its label is drawn (bold, highlighted, selected, checked) and what the user can do with it (select it, edit the label or the value, open a drop down list or a context menu, click a button). The property page reads them to lay out and draw the entry and to decide which notifications to send to it.
[Flags]
public enum PropertyEntryType
Fields
AllowDrag = 1024Allows the label to be destination of drag-drop operations
Bold = 4Label in bold letters
CancelButton = 512A cancel button should be displayed for this entry (usually in the context of an action)
Checkable = 131072A label with a check-box, Changes reported by ButtonClicked, Value == "0" (not checked), "1" (checked), "2" (undetermined or disabled)
Checked = 32Entry is checked
ContextMenu = 128There is a context menu for this entry
DirectMenu = 1048576Clicking on the entry callsButtonClicked(PropertyEntryButton) with the flag directMenu, displayed as right arrow
DropDown = 8192This entry ha a drop down list for its selection
GroupTitle = 2048A simple group title, no control to manipulate that entry
HasSpinButton = 65536This entry has a spin button (up/down button)
HasSubEntries = 32768This entry has sub-entries
Highlight = 8Label in Highlight color (red)
LabelEditable = 2Label may be edited, good for named values
Link = 64Label is a link, currently not supported
Lockable = 524288The edit part of this entry displays the lock symbol on the rigth hand side
OKButton = 256A OK Button should be displayed for this entry (usually in the context of an action)
Selectable = 1Entry may be selected (not selectable: GroupTitles)
Selected = 16Entry is selected
Seperator = 4096This entry is a separator
Shortcut = 2097152This entry may have a shortcut. The shortcut is provided in the Label as [[sF]] at the end of the text. The Syntax is [[xY]], where x is 's' for shift, 'c' for ctrl 'a' for alt or missing and Y is the key. There may also be two modifiers [[scF]] for Shift+Ctrl+F. Even when this flag is provided there may be no shortcut if the label text doesn't contain one
ValueAsButton = 262144Clicking on the (non editable) value calls ButtonClicked(PropertyEntryButton) with the flag value
ValueEditable = 16384The value can be edited