SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Defines the edit style of the control.
Get
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; enum SftMaskEditStyleConstants Style = object->GetEditStyle(); |
C | HRESULT object->get_EditStyle(enum SftMaskEditStyleConstants* Style); |
Put
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; void object->PutEditStyle(enum SftMaskEditStyleConstants Style); |
C | HRESULT object->put_EditStyle(enum SftMaskEditStyleConstants Style); |
object
Style
Defines the edit style of the control.
Style | Value | Description |
---|---|---|
editSftMaskNone | 0 | The up/down buttons and the drop down button are never visible. |
editSftMaskUpDown | 1 | The up/down buttons are displayed along the edge of the control. |
editSftMaskCalendarDropDown | 2 | The drop down button is displayed along the edge of the control. |
editSftMaskEllipse | 3 | The ellipse button is displayed along the edge of the control. |
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.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AxSftMask1.Caption.SizePercent = 33 AxSftMask1.Caption.Text = "&IP:" AxSftMask1.Mask = "$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)" AxSftMask1.Text = "127.0.0.1" AxSftMask1.EditStyle = SftMaskEditStyleConstants.editSftMaskUpDown AxSftMask1.AutoAdvance = True AxSftMask1.AutoSize = True AxSftMask1.TabAdvance = True AxSftMask1.TabAdvanceLast = True AxSftMask1.EntrySelect = SftMaskEntrySelectConstants.entrySftMaskSelectHome AxSftMask1.EntrySelectMouse = True End Sub
Private Sub Form_Load() SftMask1.Caption.SizePercent = 33 SftMask1.Caption.Text = "&IP:" SftMask1.Mask = "$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)" SftMask1.Text = "127.0.0.1" SftMask1.EditStyle = editSftMaskUpDown SftMask1.AutoAdvance = True SftMask1.AutoSize = True SftMask1.TabAdvance = True SftMask1.TabAdvanceLast = True SftMask1.EntrySelect = entrySftMaskSelectHome SftMask1.EntrySelectMouse = True End Sub
private void Form1_Load(object sender, System.EventArgs e) { axSftMask1.Caption.SizePercent = 33; axSftMask1.Caption.Text = "&IP:"; axSftMask1.Mask = @"$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)\.$I^03(0,255)"; axSftMask1.Text = "127.0.0.1"; axSftMask1.EditStyle = SftMaskEditStyleConstants.editSftMaskUpDown; axSftMask1.AutoAdvance = true; axSftMask1.AutoSize = true; axSftMask1.TabAdvance = true; axSftMask1.TabAdvanceLast = true; axSftMask1.EntrySelect = SftMaskEntrySelectConstants.entrySftMaskSelectHome; axSftMask1.EntrySelectMouse = true; }
m_pMask1 = m_Mask1.GetControlUnknown(); _ASSERT(m_pMask1 != NULL); m_pMask1->Caption->SizePercent = 33; m_pMask1->Caption->Text = _T("&IP:"); m_pMask1->Mask = _T("$I^03(0,255)\\.$I^03(0,255)\\.$I^03(0,255)\\.$I^03(0,255)"); m_pMask1->Text = _T("127.0.0.1"); m_pMask1->EditStyle = editSftMaskUpDown; m_pMask1->AutoAdvance = VARIANT_TRUE; m_pMask1->AutoSize = VARIANT_TRUE; m_pMask1->TabAdvance = VARIANT_TRUE; m_pMask1->TabAdvanceLast = VARIANT_TRUE; m_pMask1->EntrySelect = entrySftMaskSelectHome; m_pMask1->EntrySelectMouse = VARIANT_TRUE; return TRUE;
See Also SftMask Object | Object Hierarchy