|
|
|
|
|
<Scheduler>.InfoXY (Function) In french: <Planning>.InfoXY Returns the appointment, the resource or the date found at given position in a Scheduler control. Please note The MouseXPos and MouseYPos functions return relevant information only in mouse- or stylus-related processing (click code, hover code, left or right button pressed code, etc.).
MaDate is string
MaDate = PLN_Planning1.InfoXY(schDateTime + schScreenOrigin, MouseXPos(), MouseYPos())
Trace(MaDate)
Syntax
<Result> = <Scheduler control>.InfoXY(<Type of information> , <X> , <Y>)
<Result>: Character string or Integer Requested information: - Index of appointment at specified point, -1 if there is no appointment.
- Date and time (in YYYYMMDDHHSSCC format) of appointment at specified point, empty string ("") if there is no date.
- Name of resource at specified point, empty string ("") if there is no resource.
<Scheduler control>: Control name Name of the Scheduler control to be used. <Type of information>: Integer constant (or combination of constants) Type of information requested: | | schAppointment | Index of the appointment at the specified coordinates. | schDateTime | Date and time of the appointment corresponding to the specified coordinates. | schResource | Name of resource corresponding to specified coordinates. | schScreenOrigin | By default, the point (0,0) corresponds to the top left of the Scheduler control being manipulated (with the scrollbars at the origin). If the schScreenOrigin constant is combined with the other constants, the (0,0) point corresponds to the origin of the screen. This constant cannot be used on its own. |
<X>: Integer X-coordinate (in pixels) to be analyzed. This coordinate is given in relation to the Scheduler control (if the schScreenOrigin constant is not specified). <Y>: Integer Y-coordinate (in pixels) to be analyzed. This coordinate is given in relation to the Scheduler control (if the schScreenOrigin constant is not specified).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|