PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
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
The Property ResourceWidth allows to know and modify the width of the resources in an Scheduler control with the resources in column.
Example
IF CBOX_Zoom = True THEN
PLN_MonPlanning.LargeurRessource = 200
ELSE
PLN_MonPlanning.LargeurRessource = 100
END
Syntax

Finding out the width of resources Hide the details

<Result> = <Control used>.ResourceWidth
<Result>: Integer
  • Resource width in pixels if the resource width has been previously modified by programming (with the Property ResourceWidth).
  • -1 in the following cases:
    • if the width of resources is automatically calculated (via the information given in the description window of control).
    • if the resources are displayed in row.
<Control used>: Control name
Name of Scheduler control used.

Modifying the width of resources Hide the details

<Control used>.ResourceWidth = <New width>
<Control used>: Control name
Name of Scheduler control used.
<New width>: Integer
  • New width for the resources expressed in pixels.
  • -1 to automatically calculate the width of resources from the information given in the description window of control.
Remarks
  • If the width of the resources is fixed with the Property ResourceWidth, no more "anchoring" of the resource size according to the available size is performed..
  • Only the value -1 can be used. The other negative values are ignored.
  • The width of a specific resource can be modified by Width with the following syntax:
    Nom_Planning.Resource["MaResource"].Largeur = <Nouvelle valeur>
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment