Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Get the cordinates X Y of a items start time (Read 1516 times)
alanmcgeough
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Dec 17th, 2007
Get the cordinates X Y of a items start time
Aug 18th, 2009 at 1:53pm
Print Post  
In the drag drop example the time is shown as a guide until the item is dropped onto the control. I am trying to use the same functionality on the Item Modified funcion also. So when the user moves the item the guide time is shown to enable them to see exactly the time on the planner. The functionality for this is held within the dragdrop function. using

ByVal e As System.Windows.Forms.DragEventArgs

to get the cordinates. but in the item modifying function i cannot get the X Y points using e. I need a function that can get the X Y points of an Item Start Time to be able to position the panel and also to show the guide time. Can you help please thanks.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Get the cordinates X Y of a items start time
Reply #1 - Aug 19th, 2009 at 6:18am
Print Post  
Use the Calendar.GetItemBounds passing the referenced to the modified item. The item can be obtained from the ItemModifyig event argument. The returned rectangle is relative to the top-left corner of the control.

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