ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Scheduler 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
Sets an color of Background to a time slot of an Scheduler control present in a window (for example, a time slot corresponding to lunch, a public holiday, etc.)..
Caution: The modified background color is not the appointment one but the one of the specified time period.
New in version SaaS
WEBDEV - Server codeLinux This function is now available for WEBDEV websites in Windows and Linux.
Example
// les 12, 13 et 14 novembre 2017 seront avec un fond rouge
SchedulerBackgroundColor(PLN_MonPlanning, "20171012", "20171015", "Salle ABC", iLightRed)
SchedulerBackgroundColor(PLN_MonPlanning, "20171012", "20171015", "Salle verte", iLightRed)
SchedulerBackgroundColor(PLN_MonPlanning, "20171019", "20171020", "Salle verte", iLightGreen)
SchedulerBackgroundColor(PLN_MonPlanning, "20171017", "20171019", "", iDarkBlue)
Syntax
SchedulerBackgroundColor(<Scheduler control> , <Start of time period> , <End of time period> , <Resource> , <Color>)
<Scheduler control>: Control name
Name of the Scheduler control used, found in a window.
<Start of time period>: Character string or DateTime variable
Start date and time of time period to color.
  • If the date format is 00000000HHMMSS, all the days are affected.
  • If the date format is YYYYMMDD, all the hours of the day are affected.
<End of time period>: Character string or DateTime variable
End date and time of time period to color.
<Resource>: Character string
  • Name of resource affected by the change of background color for the time period.
  • Empty string ("") to modify the background color of time period for all resources.
<Color>: Integer or Integer constant
Background color of time period. This color can correspond to:
Remark: If this parameter corresponds to -1 or to the transparent constant, the default background color is restored.
Remarks
  • The granularity of time period using a specific background color is limited to the granularity of drawing.
  • The time periods must not overlap. Otherwise, the result may differ from the expected one.
Component: wd300mdl.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/05/2024

Send a report | Local help