PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Returns for a given position in the Organizer control (coordinates of a point in the organizer):
  • the subscript of 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:
nAppointmentSubscript is int
nAppointmentSubscript = OrganizerInfoXY(ORG_ORGANIZER, oriAppointment, ...
MouseXPos(), MouseYPos())

IF nAppointmentSubscript <> -1 THEN
// An appointment is found below the mouse cursor ...
ORG_ORGANIZER..ToolTip = "Appointment at " +  ...
ORG_ORGANIZER[nAppointmentSubscript]..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.
<Type of Information>: Integer constant (or combination of constants)
Requested type of information:
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.
oriAppointmentSubscript of appointment corresponding to specified coordinates.
<X>: Integer
X coordinate (in pixels) to study. This coordinate is given in relation to the Organizer control (if the oriScreenOrigin constant is not specified).
<Y>: Integer
Y coordinate (in pixels) to study. This coordinate is given in relation to the Organizer control (if the oriScreenOrigin constant is not specified).
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment