ShowToday, ShowWeekNumbers Properties (MonthView)

Purpose

ShowToday returns or sets a value that determines if the current date is displayed at the bottom of the control.

ShowWeekNumbers returns or sets a value that determines if the week numbers are displayed next to each week.

Syntax

MonthView.ShowToday [= boolean]

MonthView.ShowWeekNumbers [= boolean]

Description

When the ShowToday property is True the current date is displayed.

The ShowWeekNumbers property determines whether week numbers are displayed. When False, (Default) week numbers are not displayed.

Week numbers are displayed to the left of the week, and start from the first week of the calendar year.

Example

Ocx MonthView mvw : .ShowToday = 0

Ocx CheckBox chk(0) = "Show Today", mvw.Width + 10, 10, 120, 14

Ocx CheckBox chk(1) = "Show Week Numbers", mvw.Width + 10, 27, 120, 14

Do : Sleep : Until Me Is Nothing

 

Sub chk_Click(Index%)

mvw.ShowToday = chk(0).Value

mvw.ShowWeekNumbers = -chk(1).Value

chk(0).Move mvw.Width + 10

chk(1).Move mvw.Width + 10

EndSub

See Also

MonthView

{Created by Sjouke Hamstra; Last updated: 23/10/2014 by James Gaite}