PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
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.
  • Versions 22 and later
    in a Gantt Chart column.
    New in version 22
    in a Gantt Chart column.
    in a Gantt Chart column.
Example
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,
  • Versions 22 and later
    Gantt Chart column.
    New in version 22
    Gantt Chart column.
    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,
  • Versions 22 and later
    Gantt Chart column.
    New in version 22
    Gantt Chart column.
    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.
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment