PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

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
..DayWidth is used to find out and modify the width of days:
  • in a Scheduler control where the days are displayed in column and the resources in row.
  • 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 days in pixels if the width of days was modified by programming (with ..DayWidth).
  • -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 column.
<Control used>: Control name
Name of 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 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 days is defined by ..DayWidth, no "anchor" can be performed for the size of days 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