|
|
|
|
|
ResourceWidth (Property) In french: LargeurRessource
The ResourceWidth property is used to get and change the width of resources in a Scheduler control where resources are arranged in columns.
IF CBOX_Zoom = True THEN SCH_MyScheduler.ResourceWidth = 200 ELSE SCH_MyScheduler.ResourceWidth = 100 END
Syntax
Finding out the width of resources Hide the details
<Result> = <Control used>.ResourceWidth
<Result>: Integer - Width of the resources in pixels, if the width was modified through programming (with the ResourceWidth) property).
- -1 in the following cases:
- if the width of the resources is automatically calculated (using the information given in the control description window).
- if the resources are displayed in row.
<Control used>: Control name Name of the Scheduler control used.
Modifying the width of resources Hide the details
<Control used>.ResourceWidth = <New width>
<Control used>: Control name Name of the 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 defined with the ResourceWidth property, the resources cannot be "anchored" according to the available size.
- Only the value -1 can be used. The other negative values are ignored.
- The width of a specific resource can be modified with the Width property using the following syntax:
Schedule_Name.Resource["MyResource"].Width = <New value>
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|