Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic OnItemHover Event (Read 2528 times)
Rob Branaghan
YaBB Newbies
*
Offline


I Love 2 Code!!

Posts: 16
Location: Warwickshire, England
Joined: Jan 6th, 2012
OnItemHover Event
Jan 9th, 2012 at 2:54pm
Print Post  
Hi,
I was wondering if there is a way I can find an "OnItemHover" event, or item Mouse enter, leave?

There must be some way the control knows what the mouse is over, as I have the current hovered item show a different colour compared to the other items.

THis is on the .NET Planner, Resource Vista View.

I managed to make it do something similar, but its not very resource friendly.
  

Robert Branaghan
.NET Software Developer
FactoryMaster Ltd.
Back to top
WWW  
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: OnItemHover Event
Reply #1 - Jan 10th, 2012 at 7:01am
Print Post  
Hi,

You can use the MouseMove event of the control and obtain the item under the mouse through the Calendar.GetItemAt method. Alternatively, you can use the Item.PointedStyle and Item.PointedSelectedStyles properties of an item to specify its appearance when hovered with the mouse in its normal and selected states. In order for these two properties to take effect, you have to also set Calendar.ItemSettings.UseExtendedStyles to Enabled.

I hope this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint