Well, firstly some general information.
Calendar Control has 2 main parts:
DataProvider
to work with data (calendar events) and
Control
to display data.
DataProvider
is responsible for storing, loading, creating, changing, deleting events.
The folowing data providers exist for now:
-- Memory/File (XML or binary)
-- MS Access DB data provider
-- MAPI dada provider (works with default Outlook calendar folder)
-- Custom Data provider (See an article about it:
http://www.codejock.com/support/articles/com/calendar/cp_3.asp - http://www.codejock.com/support/articles/com/calendar/cp_3.asp
)
To create and attach a data provider use a following method:
CalendarControl.SetDataProvider(ConnectionString)
By default it creates a memory data provider.
Look at our examples which show in details how to work with different data providers.
Control
uses data provider to read and display calendar Events (see method RetrieveDayEvents)
It has folowing "View" objects structure:
-- CalendarView
(Day, WoorkWeek, Week, Month) only one of them can be active at a time
--- DayView
---- GroupView
(used for multiple resouses/schedules)
----- EventView
Control provides you with some notifications which allow to do some customizations.
Also Calendar control supports Office 2003 theme (default) and Office 2007 theme.
About your second question.
For
Office 2003 theme
please read folowing article:
Applying Custom Colors to Individual Cells
http://www.codejock.com/support/articles/com/calendar/cp_2.asp - http://www.codejock.com/support/articles/com/calendar/cp_2.asp
For
Office 2007
theme
the idea the same but the implementation is a little bit different. See BeforeDrawThemeObject notification. It allows you to customize colors, fonts and others
for many calendar elements.
See examples in our VB Sample project.
Also you can search our forum (or ask there) for any questions. Do not hesitate to ask again if something is not clear
-- WBR, Serge
|