Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Non work hours color
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Non work hours color

 Post Reply Post Reply
Author
Message
cpss View Drop Down
Newbie
Newbie


Joined: 12 December 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpss Quote  Post ReplyReply Direct Link To This Post Topic: Non work hours color
    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.
 
 
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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 )

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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.