Table of Contents

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 = 1024

Allows the label to be destination of drag-drop operations

Bold = 4

Label in bold letters

CancelButton = 512

A cancel button should be displayed for this entry (usually in the context of an action)

Checkable = 131072

A label with a check-box, Changes reported by ButtonClicked, Value == "0" (not checked), "1" (checked), "2" (undetermined or disabled)

Checked = 32

Entry is checked

ContextMenu = 128

There is a context menu for this entry

DirectMenu = 1048576

Clicking on the entry callsButtonClicked(PropertyEntryButton) with the flag directMenu, displayed as right arrow

DropDown = 8192

This entry ha a drop down list for its selection

GroupTitle = 2048

A simple group title, no control to manipulate that entry

HasSpinButton = 65536

This entry has a spin button (up/down button)

HasSubEntries = 32768

This entry has sub-entries

Highlight = 8

Label in Highlight color (red)

LabelEditable = 2

Label may be edited, good for named values

Label is a link, currently not supported

Lockable = 524288

The edit part of this entry displays the lock symbol on the rigth hand side

OKButton = 256

A OK Button should be displayed for this entry (usually in the context of an action)

Selectable = 1

Entry may be selected (not selectable: GroupTitles)

Selected = 16

Entry is selected

Seperator = 4096

This entry is a separator

Shortcut = 2097152

This 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 = 262144

Clicking on the (non editable) value calls ButtonClicked(PropertyEntryButton) with the flag value

ValueEditable = 16384

The value can be edited