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

Calendar Labels

 Post Reply Post Reply
Author
Message Reverse Sort Order
Glen View Drop Down
Newbie
Newbie


Joined: 15 December 2010
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Glen Quote  Post ReplyReply Direct Link To This Post Topic: Calendar Labels
    Posted: 06 January 2011 at 9:13am
bump Smile
Back to Top
Glen View Drop Down
Newbie
Newbie


Joined: 15 December 2010
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Glen Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
IDBG View Drop Down
Groupie
Groupie


Joined: 16 May 2006
Location: United States
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote IDBG Quote  Post ReplyReply Direct Link To This Post Posted: 23 May 2006 at 6:22pm

Awesome!  Thanks!!

Mir

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: 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
Back to Top
IDBG View Drop Down
Groupie
Groupie


Joined: 16 May 2006
Location: United States
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote IDBG Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
IDBG View Drop Down
Groupie
Groupie


Joined: 16 May 2006
Location: United States
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote IDBG Quote  Post ReplyReply Direct Link To This Post 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

 

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.140 seconds.