PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
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
..ResourceWidth is used to find out and modify the width of resources in a Scheduler control where the resources are displayed in column.
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 Name>..ResourceWidth
<Result>: Integer
  • Width of resources in pixels if the width of resources was modified by programming (with ..ResourceWidth).
  • -1 in the following cases:
    • if the width of resources is automatically calculated (via the information given in the description window of control).
    • if the resources are displayed in row.
<Control Name>: Character string (with or without quotes)
Name of Scheduler control used.

Modifying the width of resources Hide the details

<Control Name>..ResourceWidth = <New Width>
<Control Name>: Character string (with or without quotes)
Name of 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 resources is defined by ..ResourceWidth, no "anchor" can be performed for the size of resources 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 by ..Width with the following syntax:
    Schedulre_Name..Resource["MyResource"]..Width = <New Value>
Minimum required version
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment