Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

BoldDate Property, SftMaskCalendar Object

Displays the specified date using a bold font (UpdateMonth event).

Syntax

Put

VB.NETobject.BoldDate = Dt As Date
VBobject.BoldDate = Dt As Date
C#.NETSystem.DateTime object.BoldDate = Dt;
VC++DATE object->BoldDate = Dt;
void object->PutBoldDate(DATE Dt);
CHRESULT object->put_BoldDate(DATE Dt);

object

A SftMaskCalendar object.

Dt

Defines the date to be displayed using a bold font.

Comments

The BoldDate property displays the specified date using a bold font (UpdateMonth event).

This property is write/only and can only be used while processing an UpdateMonth event. It is used to define a specific date to be displayed with a bold font. The dates defined using BoldDate are cumulative.

Examples

VB.NET

    AxSftMask1.Caption.Alignment = SftMaskAlignConstants.alignSftMaskCenter
    AxSftMask1.Caption.Position = SftMaskPositionConstants.positionSftMaskTop
    AxSftMask1.Caption.BackColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.Highlight) And &HFFFFFFFF&)
    AxSftMask1.Caption.ForeColor = Convert.ToUInt32(ColorTranslator.ToOle(SystemColors.HighlightText) And &HFFFFFFFF&)
    AxSftMask1.Contents.DateTime = #1/1/2007#
End Sub

Private Sub AxAxSftMask1_UpdateMonth(ByVal sender As Object, ByVal e As AxSftMaskLib70._ISftMaskEvents_UpdateMonthEvent) Handles AxSftMask1.UpdateMonth
    AxSftMask1.Calendar.BoldDate = #1/2/2007#
    AxSftMask1.Calendar.BoldDate = #1/9/2007#
    AxSftMask1.Calendar.BoldDate = #1/16/2007#
    AxSftMask1.Calendar.BoldDate = #1/23/2007#
    AxSftMask1.Calendar.BoldDate = #1/30/2007#
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

VB6

    SftMask1.Caption.Alignment = alignSftMaskCenter
    SftMask1.Caption.Position = positionSftMaskTop
    SftMask1.Caption.BackColor = vbHighlight
    SftMask1.Caption.ForeColor = vbHighlightText
    SftMask1.Contents.DateTime = #1/1/2007#
End Sub

Private Sub SftMask1_UpdateMonth(ByVal Dt As Date)
    SftMask1.Calendar.BoldDate = #1/2/2007#
    SftMask1.Calendar.BoldDate = #1/9/2007#
    SftMask1.Calendar.BoldDate = #1/16/2007#
    SftMask1.Calendar.BoldDate = #1/23/2007#
    SftMask1.Calendar.BoldDate = #1/30/2007#
End Sub

' Button Click Event

C#

    axSftMask1.Caption.Position = SftMaskPositionConstants.positionSftMaskTop;
    axSftMask1.Caption.BackColor = (uint) ColorTranslator.ToOle(SystemColors.Highlight);
    axSftMask1.Caption.ForeColor = (uint) ColorTranslator.ToOle(SystemColors.HighlightText);
    axSftMask1.Contents.DateTime = new DateTime(2007, 1, 1);
}

private void axSftMask1_UpdateMonth(object sender, AxSftMaskLib70._ISftMaskEvents_UpdateMonthEvent e)
{
    axSftMask1.Calendar.BoldDate = new DateTime(2007, 1, 2);
    axSftMask1.Calendar.BoldDate = new DateTime(2007, 1, 9);
    axSftMask1.Calendar.BoldDate = new DateTime(2007, 1, 16);
    axSftMask1.Calendar.BoldDate = new DateTime(2007, 1, 23);
    axSftMask1.Calendar.BoldDate = new DateTime(2007, 1, 30);
}

private void button1_Click(object sender, System.EventArgs e)

C++

    m_pMask1->Caption->ForeColor = COLOR_HIGHLIGHTTEXT | 0x80000000L;

    m_pMask1->Contents->DateTime = COleDateTime(2007, 1, 1, 0,0,0);
    return TRUE;
}

void CProject1Dlg::OnUpdateMonthSftMask1(DATE Dt)
{
    m_pMask1->Calendar->BoldDate = COleDateTime(2007, 1, 2, 0,0,0);
    m_pMask1->Calendar->BoldDate = COleDateTime(2007, 1, 9, 0,0,0);
    m_pMask1->Calendar->BoldDate = COleDateTime(2007, 1, 16, 0,0,0);
    m_pMask1->Calendar->BoldDate = COleDateTime(2007, 1, 23, 0,0,0);
    m_pMask1->Calendar->BoldDate = COleDateTime(2007, 1, 30, 0,0,0);
}

void CProject1Dlg::OnButton1()

See Also SftMaskCalendar Object | Object Hierarchy


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