Print Page | Close Window

Calendar Labels

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=4255
Printed Date: 16 July 2025 at 6:08pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Calendar Labels
Posted By: IDBG
Subject: Calendar Labels
Date Posted: 21 May 2006 at 12:58am

Hi,

Quick question about labels.  I'm supplying my own label list using the following method:

Dim CLs As XtremeCalendarControl.CalendarEventLabels

Set CLs = CalendarControl.DataProvider.LabelList

<open recordset>
<Loop thru recordset>
   CLs.AddLabel rst!LabelID, rst!LabelRGB, rst!LabelName

I'm not getting the same colors back.  For example, my recordset is supplying 6545061 as one of the colors (ID=4).  This is the same color that's used for "Personal" in the calendar sample VB project.  My appointment with LabelID=4 shows 14084071 as the color.

What am I doing wrong?

Thanks!
Mir

 




Replies:
Posted By: IDBG
Date Posted: 21 May 2006 at 3:15am

I found this to workfine too....

However, if I load the labels during the form_load event, I'm still having this issue.  If I load the labels during my "calendar populate" procedure, the colors are fine.

Thanks!
Mir



Posted By: sserge
Date Posted: 23 May 2006 at 5:50pm
Hi,

Note that right after creating the control its label list is already defined in a default value. So far, when you reinitializes it, you should call .RemoveAll method before filling new values.

Dim CLs As XtremeCalendarControl.CalendarEventLabels
Set CLs = CalendarControl.DataProvider.LabelList
CLs.RemoveAll
<open recordset>
<Loop thru recordset>
   CLs.AddLabel rst!LabelID, rst!LabelRGB, rst!LabelName


--
WBR,
Serge


Posted By: IDBG
Date Posted: 23 May 2006 at 6:22pm

Awesome!  Thanks!!

Mir



Posted By: Glen
Date Posted: 15 December 2010 at 12:09pm
I've been unable to get this to work, no matter what value I supply for the color, it doesn't show in the calendar:

Is there a trick to this?  Perhaps I'm calling things in the wrong order?  I'm calling populate on the calendar control before and after clearing/adding the label list.


Posted By: Glen
Date Posted: 06 January 2011 at 9:13am
bump Smile



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