ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Organizer functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
Example
// 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:
oriAppointmentIndex of the appointment at the specified coordinates.
oriDateTimeDate and time of appointment corresponding to specified coordinates.
oriScreenOriginBy 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).
Component: wd300obj.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help