Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

TotalForeColor Property, SftMaskCalculator Object

Defines the foreground color of the current total in the calculator window.

Syntax

Get

VB.NETClr = object.TotalForeColor As UInteger
VBClr = object.TotalForeColor As OLE_COLOR
C#.NETuint Clr = object.TotalForeColor;
VC++OLE_COLOR Clr = object->TotalForeColor;
OLE_COLOR Clr = object->GetTotalForeColor();
CHRESULT object->get_TotalForeColor(OLE_COLOR* Clr);

Put

VB.NETobject.TotalForeColor = Clr As UInteger
VBobject.TotalForeColor = Clr As OLE_COLOR
C#.NETuint object.TotalForeColor = Clr;
VC++OLE_COLOR object->TotalForeColor = Clr;
void object->PutTotalForeColor(OLE_COLOR Clr);
CHRESULT object->put_TotalForeColor(OLE_COLOR Clr);

object

A SftMaskCalculator object.

Clr

Defines the foreground color of the current total in the calculator window.

Comments

The TotalForeColor property defines the foreground color of the current total in the calculator window.

Examples

VB.NET

    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)
End Sub

VB6

    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
End Sub

C#

    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);
}

C++

    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);

    return TRUE;
}

See Also SftMaskCalculator Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.