|
|
|
|
|
OrganizerInfoXY (Function) In french: AgendaInfoXY Returns for a given position in the Organizer control (coordinates of a point in the Organizer control): - the index of the appointment for the specified position.
- the date corresponding to the specified position.
// Find out the date located at cursor position // in the Organizer control dDate is Date dDate = OrganizerInfoXY(ORG_MyOrganizer, oriDateTime, MouseXPos(), MouseYPos()) Â // The hovered date becomes the first date displayed by the organizer OrganizerPosition(ORG_MyOrganizer, dDate)
// Display the location of the appointment in the rollover tooltip // Mouse rollover code (WM_MOUSEMOVE) of Organizer control: nAppointmentIndex is int nAppointmentIndex = OrganizerInfoXY(ORG_ORGANIZER, oriAppointment, ... MouseXPos(), MouseYPos()) Â IF nAppointmentIndex <> -1 THEN // An appointment is under the mouse cursor ... ORG_ORGANIZER.ToolTip = "Appointment at " + ORG_ORGANIZER[nAppointmentIndex].Location END
Syntax
<Result> = OrganizerInfoXY(<Organizer control> , <Type of information> , <X> , <Y>)
<Result>: Integer, character string or Date variable - Requested information.
- An empty string ("") if the oriDateTime constant is used and if no date is found at the specified coordinates.
- -1 if the oriAppointment constant is used and if no appointment is found at the specified coordinates.
<Organizer control>: Control name Name of Organizer control to use (found in a window) <Type of information>: Integer constant (or combination of constants) Requested type of information: | | oriAppointment | Index of the appointment at the specified coordinates. | oriDateTime | Date and time of appointment corresponding to specified coordinates. | oriScreenOrigin | By default, (0,0) corresponds to the top left corner of the Organizer control used (the scrollbars being located at the origin). If oriScreenOrigin constant is combined with the other constants, (0,0) 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 Organizer control (if the oriScreenOrigin constant is not specified). <Y>: Integer Y-coordinate (in pixels) to be analyzed. This coordinate is given in relation to the Organizer control (if the oriScreenOrigin constant is not specified).
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|