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

Add Label

 Post Reply Post Reply
Author
Message
DataFlowJoe View Drop Down
Groupie
Groupie


Joined: 30 October 2007
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote DataFlowJoe Quote  Post ReplyReply Direct Link To This Post Topic: Add Label
    Posted: 28 March 2009 at 1:33pm
Hi, can someone help me with a snippet of code to add new labels and colors to a calendar control.
 
All the help file says is
 
Public Sub AddLabel( _
   ByVal LabelID As Long, _
   ByVal Color As ULong, _
   ByVal Name As String _
)

It would be useful if the helpfile gave a simple example.

I'm using VBA in microsoft Access
 
Thanks for your time.
He is no fool who gives what he cannot keep to gain what he cannot lose. (Jim Elliott)
Back to Top
mbrogdon View Drop Down
Groupie
Groupie


Joined: 22 March 2007
Status: Offline
Points: 40
Post Options Post Options   Thanks (0) Thanks(0)   Quote mbrogdon Quote  Post ReplyReply Direct Link To This Post Posted: 31 March 2009 at 3:11pm

Hi DataFlowJoe,

I use this function to extend my Labels


Public Sub AddLabel(ByVal LabelNr As Long, ByVal R As Long, ByVal G As Long, ByVal B As Long, ByVal Name As String)
   ctlCalendar.DataProvider.LabelList.AddLabel LabelNr, RGB(R, G, B), Name
End Sub
Xtreme SuitePro ActiveX 13.2.0 - Windows XP SP3 - VB6/Ingres Openroad 2006
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.156 seconds.