ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Various properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Resource property is used to:
  • find out the resources visible in a Scheduler control.
  • get the resource of the Scheduler control that corresponds to the specified index.
  • New in version 2025
    change the color of the Scheduler control resource for the specified index.
Example
SchedulerAddResource(PLN_Planning1, "Flo" + gStoredValue("FP"))
SchedulerAddResource(PLN_Planning1, "Manu" + gStoredValue("EB"))
Trace(PLN_Planning1.Ressource[1].Titre) // Renvoie "Flo"
SchedulerAddResource(PLN_Planning1, "Salle verte")
SchedulerAddResource(PLN_Planning1, "Salle rouge")
SchedulerAddResource(PLN_Planning1, "Salle bleue")
FOR EACH NomSalle OF PLN_Planning1.Ressource
	Trace("Nom : " + NomSalle.Title)
END
SchedulerAddResource(PLN_SansNom1,"AA")
PLN_Planning1.Ressource["AA"].CouleurFond = DarkGreen
Syntax

Finding out the Nth resource of a Scheduler control Hide the details

<Résultat> = <Champ Planning>.Resource[<Indice>]
<Result>:
Name of the requested resource.
<Scheduler control>: Control name
Name of the Scheduler control used.
<Index>: Integer
Index of the requested resource.

Finding out the resources visible in a Scheduler control Hide the details

<Result> = <Scheduler control>.Resource
<Result>: Array
Name of the array containing the visible resource of the Scheduler control. The only property that can be used on an element of this array is Title.
<Scheduler control>: Control name
Name of the Scheduler control used.
New in version 2025

Change the color of the Nth resource in a Scheduler control Hide the details

<Champ Planning>.Ressource[<Indice>].BackgroundColor = <Couleur>
<Scheduler control>: Control name
Name of the Scheduler control used.
<Index>: entier
Index of the requested resource.
<Color>: Integer or Integer constant
Resource background color. This color can correspond to:Note: If this parameter is set to -1 or the constant transparent, the default background color is restored.
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help