|
|
|
|
|
DayWidth (Property) In french: LargeurJour
The DayWidth property is used to determine and change the width of days: - in a Scheduler control where the days are displayed in columns and the resources in rows.
in a Gantt Chart column.
IF CBOX_Zoom = True THEN SCH_MyScheduler.DayWidth = 200 ELSE SCH_MyScheduler.DayWidth = 100 END
Syntax
Finding out the width of days Hide the details
<Result> = <Control used>.DayWidth
<Result>: Integer - Width of the days in pixels, if the width was modified through programming (with the DayWidth) property).
- -1 in the following cases:
- if the width of days is automatically calculated (via the information given in the description window of control).
- if the resources are displayed in columns.
<Control used>: Control name Name of the control used: - Scheduler control,
Gantt Chart column.
Modifying the width of days Hide the details
<Control used>.DayWidth = <New width>
<Control used>: Control name Name of the control used: - Scheduler control,
Gantt Chart column.
<New width>: Integer - New width of days expressed in pixels.
- -1 to automatically calculate the width of days from the information given in the description window of the control.
Remarks - If the width of the days is defined with the DayWidth property, the days cannot be "anchored" according to the available size.
- Only the value -1 can be used. The other negative values are ignored.
- If the Scheduler control is configured with the option "Display the hours", the given size will be adjusted by range of 24h.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|