SftMask/OCX 6.5

SftMask.UpdateMonth Event

Softel vdm, Inc.

A new month is displayed.

Syntax       

VB.NET

Private Sub object_UpdateMonth(ByVal sender As Object, ByVal e As EventArgumentType) Handles object.UpdateMonth

VB

Private Sub object_UpdateMonth(ByVal Dt As Date)

C#.NET

void object_UpdateMonth(object sender, EventArgumentType e);

VC++

void OnUpdateMonthobject(DATE Dt);

C

HRESULT OnUpdateMonthobject(DATE Dt);

Delphi

procedure objectUpdateMonth(Sender: TObject; Dt : TDateTime);

object

A SftMask object.

Dt

Defines the starting date of the calendar currently displayed.

Comments

The UpdateMonth event occurs when a new month is displayed.

This event can be used to define specific dates to be displayed with a bold font using the Calendar.BoldDate.

The starting Date Dt is not necessarily equivalent to the current month being displayed, as the calendar display usually includes a few days of the prior month. It should be assumed that the actual month displayed is within the range Dt to Dt + 2 months. When updating the calendar display using the Calendar.BoldDate property, the entire 3 month range should be updated.

On entry to the UpdateMonth event, no dates are highlighted. The BoldDate property must be used for all dates to be highlighted. The next UpdateMonth event occurs when the user selects a new month and all highlighted dates are cleared.

This event cannot be used to modify other control properties or invoke control methods.


Feedback / comments / error reports for this topic
© 2000, 2008 - Softel vdm, Inc. - www.softelvdm.com