SetSelection in GroupIndex |
Post Reply |
Author | |
IDBG
Groupie Joined: 16 May 2006 Location: United States Status: Offline Points: 21 |
Post Options
Thanks(0)
Posted: 15 October 2006 at 3:41am |
Hi! On the ContextMenu event of the calendar I can get the GroupIndex from the CalendarHitTestInfo object.
i = HitTest.ViewGroup.GroupIndex
However, I can't seem to find any way to use this group index to set selection on the appropriate resource.
No matter how I use it, the SetSelection seems to default to the first resource.
I'm using
HitTest.ViewDay.View(i).View.SetSelection dtStart, dtEnd, False
Am I missing something?
Thanks!!
Mir
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi Mir,
GetSelection and SetSelection methods are now obsolete, they came from first versions of Calendar and now left only for compartibility. There is a new way to use selection: CalendarView.Selection property. Example: wndCalendarControl.DayView.Selection.GroupIndex = 3 OR wndCalendarControl.ActiveView.Selection.GroupIndex = 3 -- WBR, Serge |
|
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 |