ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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 ResourceWidth property is used to get and change the width of resources in a Scheduler control where resources are arranged in columns.
Example
IF CBOX_Zoom = True THEN
SCH_MyScheduler.ResourceWidth = 200
ELSE
SCH_MyScheduler.ResourceWidth = 100
END
Syntax

Finding out the width of resources Hide the details

<Result> = <Control used>.ResourceWidth
<Result>: Integer
  • Width of the resources in pixels, if the width was modified through programming (with the ResourceWidth) property).
  • -1 in the following cases:
    • if the width of the resources is automatically calculated (using the information given in the control description window).
    • if the resources are displayed in row.
<Control used>: Control name
Name of the Scheduler control used.

Modifying the width of resources Hide the details

<Control used>.ResourceWidth = <New width>
<Control used>: Control name
Name of the Scheduler control used.
<New width>: Integer
  • New width for the resources expressed in pixels.
  • -1 to automatically calculate the width of resources from the information given in the description window of control.
Remarks
  • If the width of the resources is defined with the ResourceWidth property, the resources cannot be "anchored" according to the available size.
  • Only the value -1 can be used. The other negative values are ignored.
  • The width of a specific resource can be modified with the Width property using the following syntax:
    Schedule_Name.Resource["MyResource"].Width = <New value>
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help