SOLVED: CalendarEventCategory |
Post Reply |
Author | |
McKloony
Senior Member Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |
Post Options
Thanks(0)
Posted: 11 March 2011 at 4:47am |
How can I add a new CalendarEventCategory?
Dim DaPro As XtremeCalendarControl.CalendarDataProvider Dim EvCat As XtremeCalendarControl.CalendarEventCategory Dim EvCas As XtremeCalendarControl.CalendarEventCategories Set FM = frmMain Set CaCol = FM.calCont1 Set DaPro = CaCol.DataProvider Set CaLbs = DaPro.LabelList Set EvCas = DaPro.EventCategories Set EvCat = EvCas.Add(1) does not work
|
|
Product: Xtreme SuitePro (ActiveX) 16.2.5
Platform: XP / Windows 7 Language: Visual Basic 6.0 SP6 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
By default Event ID's 1-6 are already created yellow, blue, etc.... So if you add them be sure to start with ID 7 or greter or delete the default ones.
If m_bAddEvent Then
m_pEditingEvent.Categories.Add 7 m_pEditingEvent.Categories.Add 8 frmInbox.wndCalendarControl.DataProvider.AddEvent m_pEditingEvent Else frmInbox.wndCalendarControl.DataProvider.ChangeEvent m_pEditingEvent End If
Public Sub AddCategories()
'IDs 1-6 are used for the default colors, 1 = Yellow....6 - Blue Dim EvCat As XtremeCalendarControl.CalendarEventCategory |
|
McKloony
Senior Member Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |
Post Options
Thanks(0)
|
Thank you verry much again!
How can I set an CalendarEventCategory to an CalendarEvent? |
|
Product: Xtreme SuitePro (ActiveX) 16.2.5
Platform: XP / Windows 7 Language: Visual Basic 6.0 SP6 |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
The first part of the code I posted shows
|
|
McKloony
Senior Member Joined: 09 January 2007 Location: Germany Status: Offline Points: 340 |
Post Options
Thanks(0)
|
Yes, sorry you are right !
|
|
Product: Xtreme SuitePro (ActiveX) 16.2.5
Platform: XP / Windows 7 Language: Visual Basic 6.0 SP6 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |