property Schedule.DateTimeFromPoint (X as OLE_XPOS_PIXELS, Y as OLE_YPOS_PIXELS) as Date
Retrieves the date/time from the cursor, in the schedule panel.

TypeDescription
X as OLE_XPOS_PIXELS A single that specifies the current X location of the mouse pointer. The x values is always expressed in client coordinates.
Y as OLE_YPOS_PIXELS A single that specifies the current Y location of the mouse pointer. The y values is always expressed in client coordinates.
Date A Date expression that indicates the date from the cursor.
The MouseMove event is generated continually as the mouse pointer moves across objects. During the MouseMove event you can call the ShowToolTip method to display any custom tooltip. During the Click or RClick event you can get an UI part of the control using one of the following properties.  All ...FromPoint properties can be use such as ...FromPoint(-1,-1) to get the UI part of the control from the current mouse position, in other words, you do not have to pass any X, Y coordinates. The DateTimeFromPoint property gets the date including the time. You can use any function that gets the integer part of the date, to get the date only, not including the time, such as Fix, DateValue, ... in VB. For instance, the VB has a Fix method that gets the integer part of the number. So, the Fix(DateTimeFromPoint(-1,-1)) gets the date from the cursor, not including the time as shown in the time scale.

You can get UI parts from the cursor, using any of the following ...FromPoint properties:

All ...FromPoint properties that returns an Object, may return Nothing, Empty or NULL, if no object is found.