Non work hours color |
Post Reply |
Author | |
cpss
Newbie Joined: 12 December 2006 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 12 December 2006 at 3:05am |
New to this control at this moment, but no to programming. In general I see the control developer help very concise and concrete, perhaps too much. I miss some more detailed information about hoy to begin with this control for beginners to those controls (not programmer beginners). Perhaps a few words about how is the control organised and how the main parts of the control are working.
Related to it, I can not see information on to know if it is possible to change the color of non work hours as a whole to another that differentiates more from the work hours. In some LDC screens it seems to be the same color.
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
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
)
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
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |