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
SchedulerBackgroundColor (Function)
In French: PlanningCouleurFond
Defines a background color for a time period in a Scheduler control (time period corresponding to lunch time, to a bank holiday, ...).
Caution: The modified background color is not the appointment one but the one of the specified time period.
Example
// November 12, 13 and 14, 2011 will be displayed on a red background
SchedulerBackgroundColor(SCH_MySchedule, "20111012", "20111015", "Room ABC", iLightRed)
SchedulerBackgroundColor(SCH_MySchedule, "20111012", "20111015", "Green room", iLightRed)
SchedulerBackgroundColor(SCH_MySchedule, "20111019", "20111020", "Green room", iLightGreen)
SchedulerBackgroundColor(SCH_MySchedule, "20111017", "20111019", "", iDarkBlue)
Syntax
SchedulerBackgroundColor(<Scheduler Control> , <Start of Time Period> , <End of Time Period> , <Resource> , <Color>)
<Scheduler Control>: Control name
Name of Scheduler control used. This control can correspond to:
  • the Scheduler control of a window,
  • the Scheduler control of a report.
<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 (with quotes)
  • 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 corresponds to:
Note: 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.
Components
WINDEVReports and Queries wd230mdl.dll
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment