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 DayWidth makes it possible to know and modify the width of the 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
PLN_MonPlanning.LargeurJour = 200
ELSE
PLN_MonPlanning.LargeurJour = 100
END
Syntax

Finding out the width of days Hide the details

<Result> = <Control used>.DayWidth
<Result>: Integer
  • Day width in pixels if the day width has been previously changed by programming (with Property 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 the days is fixed with the Property DayWidth, no more "anchoring" of the size of the days according to the available size is carried out..
  • 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