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
Displays the specified date using a bold font (UpdateMonth event).
Put
VB.NET | object.BoldDate = Dt As Date |
VB | object.BoldDate = Dt As Date |
C#.NET | System.DateTime object.BoldDate = Dt; |
VC++ | DATE object->BoldDate = Dt; void object->PutBoldDate(DATE Dt); |
C | HRESULT object->put_BoldDate(DATE Dt); |
object
Dt
Defines the date to be displayed using a bold font.
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.
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
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
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)
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