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 number of fractional digits displayed.
Get
VB.NET | Digits = object.FracDigits As Short |
VB | Digits = object.FracDigits As Integer |
C#.NET | short Digits = object.FracDigits; |
VC++ | short Digits = object->FracDigits; short Digits = object->GetFracDigits(); |
C | HRESULT object->get_FracDigits(short* Digits); |
Put
VB.NET | object.FracDigits = Digits As Short |
VB | object.FracDigits = Digits As Integer |
C#.NET | short object.FracDigits = Digits; |
VC++ | short object->FracDigits = Digits; void object->PutFracDigits(short Digits); |
C | HRESULT object->put_FracDigits(short Digits); |
object
Digits
Defines the number of fractional digits displayed. This value is between -1 and 9. If -1 is specified, the default is 6.
The FracDigits property defines the number of fractional digits displayed.
The defined number must be smaller or equal to the number of digits used in the numeric input field. If the number is larger, the popup calculator cannot be closed as the calculated value exceeds the size of the numeric input field.
AxSftMask1.Caption.SizePercent = 33 AxSftMask1.Caption.Text = "&Amount:" AxSftMask1.Mask = "| $C-,8.2" AxSftMask1.Alignment = SftMaskAlignConstants.alignSftMaskRight AxSftMask1.EntrySelect = SftMaskEntrySelectConstants.entrySftMaskSelectEnd AxSftMask1.Text = 10 CalcObj = AxSftMask1.Calculator CalcObj.Lines = 12 CalcObj.FracDigits = 2 CalcObj.BackColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.Info) And &HFFFFFFFF&) CalcObj.ForeColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.InfoText) And &HFFFFFFFF&) CalcObj.TotalBackColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.Highlight) And &HFFFFFFFF&) CalcObj.TotalForeColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.HighlightText) And &HFFFFFFFF&) AxSftMask1.SelStart = 0 ' intentionally "bad" position AxSftMask1.OptimalPosition(True)
SftMask1.Caption.SizePercent = 33 SftMask1.Caption.Text = "&Amount:" SftMask1.Mask = "| $C-,8.2" SftMask1.Alignment = alignSftMaskRight SftMask1.EntrySelect = entrySftMaskSelectEnd SftMask1.Text = 10 Set CalcObj = SftMask1.Calculator CalcObj.Lines = 12 CalcObj.FracDigits = 2 CalcObj.BackColor = vbInfoBackground CalcObj.ForeColor = vbInfoText CalcObj.TotalBackColor = vbHighlight CalcObj.TotalForeColor = vbHighlightText SftMask1.SelStart = 0 ' intentionally "bad" position SftMask1.OptimalPosition True
axSftMask1.Caption.SizePercent = 33; axSftMask1.Caption.Text = "&Amount:"; axSftMask1.Mask = "| $C-,8.2"; axSftMask1.Alignment = SftMaskAlignConstants.alignSftMaskRight; axSftMask1.EntrySelect = SftMaskEntrySelectConstants.entrySftMaskSelectEnd; axSftMask1.Text = "10"; CalcObj.Lines = 12; CalcObj.FracDigits = 2; CalcObj.BackColor = (uint) ColorTranslator.ToOle(SystemColors.Info); CalcObj.ForeColor = (uint) ColorTranslator.ToOle(SystemColors.InfoText); CalcObj.TotalBackColor = (uint) ColorTranslator.ToOle(SystemColors.Highlight); CalcObj.TotalForeColor = (uint) ColorTranslator.ToOle(SystemColors.HighlightText); axSftMask1.SelStart = 0; // intentionally "bad" position axSftMask1.OptimalPosition(true);
m_pMask1->Caption->SizePercent = 33; m_pMask1->Caption->Text = _T("&Amount:"); m_pMask1->Mask = _T("| $C-,8.2"); m_pMask1->Alignment = alignSftMaskRight; m_pMask1->EntrySelect = entrySftMaskSelectEnd; m_pMask1->Text = _T("10"); pCalc->Lines = 12; pCalc->FracDigits = 2; pCalc->BackColor = COLOR_INFOBK |0x80000000L; pCalc->ForeColor = COLOR_INFOTEXT |0x80000000L; pCalc->TotalBackColor = COLOR_HIGHLIGHT |0x80000000L; pCalc->TotalForeColor = COLOR_HIGHLIGHTTEXT |0x80000000L; m_pMask1->SelStart = 0; // intentionally "bad" position m_pMask1->OptimalPosition(VARIANT_TRUE);
See Also SftMaskCalculator Object | Object Hierarchy