|
|
|
SftMask.EditStyle Property |
Defines the edit style of the control.
Syntax
VB.NET |
Style = object.EditStyle As SftMaskEditStyleConstants |
||
VB |
Style = object.EditStyle As SftMaskEditStyleConstants |
||
C#.NET |
SftMaskEditStyleConstants Style = object.EditStyle; |
||
VC++ |
enum SftMaskEditStyleConstants Style = object->EditStyle;
|
||
C |
HRESULT object->get_EditStyle(enum SftMaskEditStyleConstants* Style); |
||
Delphi |
Style := object.EditStyle : TOleEnum; |
||
VB.NET |
object.EditStyle = Style As SftMaskEditStyleConstants |
||
VB |
object.EditStyle = Style As SftMaskEditStyleConstants |
||
C#.NET |
SftMaskEditStyleConstants object.EditStyle = Style; |
||
VC++ |
enum SftMaskEditStyleConstants object->EditStyle = Style;
|
||
C |
HRESULT object->put_EditStyle(enum SftMaskEditStyleConstants Style); |
||
Delphi |
object.EditStyle := Style : TOleEnum; |
object
A SftMask object.
Style
Defines the edit style of the control.
Style |
Value |
Description |
0 |
The up/down buttons and the drop down button are never visible. |
|
1 |
The up/down buttons are displayed along the edge of the control. |
|
2 |
The drop down button is displayed along the edge of the control. |
|
3 |
The ellipse button is displayed along the edge of the control. |
Comments
The EditStyle property defines the edit style of the control.
The EditStyle property controls the presence of the up/down buttons, the drop down button and the ellipse button. Up/down buttons, drop down button and ellipse button cannot be displayed at the same time in one control.
The up/down buttons, drop down button or ellipse button are visible based on the EditStyle property. The Locked, LockedDropDown, LockedEllipse and LockedUpDown properties define whether the control and the drop down button, ellipse button and up/down buttons are enabled. In addition, the up/down buttons and drop down button are only enabled if the caret location (input position) is in a field requiring up/down buttons or the drop down button.
Up/down buttons can be used with numeric field by using the ^ subtoken (see Mask property).
A drop down button can be used with all date/time related input fields to display a popup calendar. The DropDownWidth property can be used to define the appearance of the drop down button.
If the control is used as a simple edit control (without Mask), up/down buttons or the drop down button can be made visible, but they will be disabled. There is no mechanism to enable them in this case.