Use the HitTest to determine the resource clicked |
Post Reply |
Author | |
RedFin
Groupie Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
Post Options
Thanks(0)
Posted: 18 April 2011 at 6:22pm |
Hi, I am displaying a number of resources in my calendar. I am using the HitTest object to ascertain the Date/Time clicked, and while I can use the HitTest object to access information about all resources, I would like to be able to find out which resource I actually clicked on. Would anyone be able to help me with this please? Thanks, Rohan |
|
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
Hi,
By resource do you mean the Calendar Event? If so then the following code works for me:
|
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
|
RedFin
Groupie Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Thanks Xander. By resource I mean that each day in the calendar can have a number of resources within it - eg. Room 1, Room 2 - When the user clicks in the calendar a custom form opens for creating a booking. I need to be able to pass the resource that was clicked to the custom booking form. Thanks, Rohan |
|
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
Hi,
Ok I see what you mean, never used the ResourceManager before but using the VB Calendar sample I added several resources and with the following code I was able to determine which Resource was clicked on.
|
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
|
RedFin
Groupie Joined: 26 March 2008 Location: Australia Status: Offline Points: 47 |
Post Options
Thanks(0)
|
Thanks heaps Xander, that's perfect :) |
|
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
You're welcome...
Glad I could help. |
|
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & 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 |