Print Page | Close Window

Non work hours color

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=5761
Printed Date: 26 November 2024 at 5:54pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Non work hours color
Posted By: cpss
Subject: Non work hours color
Date 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.
 
 



Replies:
Posted By: sserge
Date Posted: 12 December 2006 at 2:52pm
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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net