ComponentOne True DBInput Pro 8.0
Templates Property (TDBCalendar)

To simplify setting up different kinds of calendars, the calendar control provides a few default calendar templates through this Templates property. All that is needed is to select a calendar template from this property. Internally, the control will set the properties with the appropriate value. Users can adjust the settings to fit their exact needs. The 0-Outlook style template will be applied when the control is first created.

Syntax

TDBCalendar.Templates= value

Read/Write at run time and design time.

Values

Design Time

Run Time

0 - Outlook (Default)

dbiOutlook

1 - MS Calendar

dbiMSCalendar

2 - Common

dbiCommon

3 - Windows98

dbiWin98

Remarks

Using the following properties and objects, the user can make nearly any kind of calendar with this control:

MonthCols

Determines the amount of month columns to display.

MonthRows

Determines the amount of month rows to display.

LineColors()

Color used for drawing different lines.

LineStyles()

Determines the line styles for each place.

StyleSets()

Set up different kinds of drawing styles. 3D, and so on.

AttribStyles()

Set up different kinds of attribute styles, selections, and so on.

The Redraw property does not need to be set to false, since the control will handle this internally for this particular case.

Changing the settings of the Templates property will cause the existing objects in the StyleSetsCollection and the AttribStylesCollection to be replaced with the ones provided with the templates.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback