Calendar control learning experience

xiaoxiao2021-03-06  84

Today, I continue to ponder in the Calendar control, see the following code, (used to display the date tag in Calendar):

IF d.isothermonth then

C.Controls.clear

Else

DIM STRHOLIDAY, STRFORMATSTART, STRFORMATEND AS STRING

strHoliday = Holidays (D.Date.Month, D.date.day)

StrformatStart = "
"

Strformatend = ""

IF strholiday <> "" ""

C.Controls.add (New LiteralControl (StrformatStart strHoliday Strformate))

C.ForeColor = color.red

END IF

END IF

c is a Tablecell object that inherits the E parameter of the DayRender event. But the role of C.Controls is not very understanding (even will continue to go online to ask prawn). D is a CalendAmDay object, j inherits the E parameter of the DayRender event, does not understand the role of D.isotherMonth.

Solution and learning experience: D.isothermont is whether the date referred to in the Calendarday control is not currently displayed in the Calendar control. The value is a Boolean type. This attribute is read-only attribute.

Regarding the trigger of the Dayrender event, I have a small question, and should indicate the incident in the Calendar control (E.G: OndayRender = "Calendar1_dayrender")

After the problem is basically solved, I have mastered the usual use of Calendar controls, here, for Calendar's study, one paragraph.

转载请注明原文地址:https://www.9cbs.com/read-107225.html

New Post(0)