vcl-dxchartcore-dot-tdxchartmouseaction.md
Specifies modifier keys required to execute the mouse action in addition to the active mouse button.
property ModifierKeys: TdxModifierKeys read; write;
| Type | Description |
|---|---|
| TdxModifierKeys |
The set of modifier keys required to execute the mouse action in addition to a click on the active mouse button.
|
Use the ModifierKeys property to define what modifier keys a user needs to hold down in addition to a click on the active mouse button. This property is particularly useful when you need to differentiate multiple similar actions.
The ModifierKeys property accepts a set of the following flags in any combination:
| Flag | Description |
|---|---|
| TdxModifierKey.Alt | Users need to click the active mouse button while holding down the Alt modifier key to execute the mouse action. |
| TdxModifierKey.Ctrl | Users need to click the active mouse button while holding down the Ctrl modifier key to execute the mouse action. |
| TdxModifierKey.Shift | Users need to click the active mouse button while holding down the Shift modifier key to execute the mouse action. |
Note
TdxModifierKey is a scoped enumeration type. Use the type name together with a scope resolution token (. in Delphi or :: in C++Builder) followed by an enumeration value to refer to this value. For example, use TdxModifierKey.Ctrl (in Delphi) or TdxModifierKey::Ctrl (in C++Builder) to refer to the Ctrl value in code.
The ModifierKeys property’s default value depends on the mouse action type:
Pan | Marquee ZoomThe default value is [] (no modifier key is required).Zoom InThe default value is [TdxModifierKey.Shift] (only the Shift modifier key is required).Zoom OutThe default value is [TdxModifierKey.Alt] (only the Alt modifier key is required).
See Also
TdxChartMouseAction.Enabled Property