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

SetSelection in GroupIndex

 Post Reply Post Reply
Author
Message
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 Topic: SetSelection in GroupIndex
    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
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: 16 October 2006 at 2:55am
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 
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.148 seconds.