|
|
|
|
|
Resource (Property) In french: Ressource
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 2025change the color of the Scheduler control resource for the specified index.
SchedulerAddResource(PLN_Planning1, "Flo" + gStoredValue("FP"))
SchedulerAddResource(PLN_Planning1, "Manu" + gStoredValue("EB"))
Trace(PLN_Planning1.Ressource[1].Titre)
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.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|