AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
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.
  • WINDEV 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,
  • WINDEV 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,
  • WINDEV 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.
Versión mínima requerida
  • Versión 17
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local