AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones del planificador
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 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, ...).
Example
// Displays in the trace the date found at hovered location
// (optional WM_MOUSEMOVE event)
// The result would also be obtained in the code of left button up (WM_LBUTTONUP)
// Not to be used in the code for "Selecting a period" in the Scheduler control
// that is not linked to the mouse
 
MyDate is string
MyDate = SCH_Schedule1.InfoXY(schDateTime + schScreenOrigin, MouseXPos(), MouseYPos())
Trace(MyDate)
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 Scheduler control to use.
<Type of information>: Integer constant (or combination of constants)
Type of information requested:
schAppointmentIndex of the appointment at the specified coordinates.
schDateTimeDate and time of the appointment corresponding to the specified coordinates.
schResourceName of resource 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.
<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).
Component: wd290obj.dll
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 20/06/2023

Señalar un error o enviar una sugerencia | Ayuda local