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
SchedulerInfoXY (Function)
In French: PlanningInfoXY
Returns the appointment, the resource or the date found at given position in a Scheduler control.
Caution: MouseXPos and MouseYPos return a relevant information in the processes linked to the mouse or to the stylus (click code, rollover code, code of left or right button down, ...).
Versions 21 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
New in version 21
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Example
// Displays in the trace the date found at hovered location
// (optional WM_MOUSEMOVE process)
// The result would also be obtained in the code of left button up (WM_LBUTTONUP)
// Not to be used in the code for "period selection" of schedule
// that is not linked to the mouse

MyDate is string
MyDate = SchedulerInfoXY(SCH_Schedule1, schDateTime + schScreenOrigin, MouseXPos(), MouseYPos())
Trace(MyDate)
Syntax
<Result> = SchedulerInfoXY(<Scheduler Control> , <Type of Information> , <X> , <Y>)
<Result>: Character string or Integer
Requested information:
  • Subscript 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 Scheduler control to use. If this parameter corresponds to an empty string (""), SchedulerInfoXY handles the Scheduler control to which the current process belongs.
<Type of Information>: Integer constant (or combination of constants)
Requested type of information:
schDateTimeDate and time of appointment corresponding to specified coordinates.
schScreenOriginBy default, the (0,0) point corresponds to the top left point of Scheduler control used (the scrollbars being located 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.
iPhone/iPad This constant is not available.
schAppointmentSubscript of appointment corresponding to specified coordinates.
schResourceName of resource corresponding to specified coordinates.
<X>: Integer
X coordinate (in pixels) to study. This coordinate is given in relation to the Scheduler control (if the schScreenOrigin constant is not specified).
<Y>: Integer
Y coordinate (in pixels) to study. This coordinate is given in relation to the Scheduler control (if the schScreenOrigin constant is not specified).
Components
WINDEVReports and Queries wd230obj.dll
Android wd230android.jar
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment