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 UsefulWidth property is used to get and change the useful width of an internal window (or supercontrol) with scrollbars.
The useful size corresponds to the full size of the internal window:
  • Width of internal window.
  • Height of internal window.
Example
SC_Supercontrol1.Width = 320
SC_Supercontrol1.UsefulWidth = 2000
Syntax

Finding out the useful width of an element Hide the details

<Current Useful Width> = <Element to use>.UsefulWidth
<Current Useful Width>: Integer
Useful width of element expressed in pixels.
<Element to use>: Control name or window name
Name of the element (internal window or supercontrol) to use.

Modifying the useful width of an element Hide the details

<Element to use>.UsefulWidth = <New Useful Width>
<Element to use>: Control name or window name
Name of the element (internal window or supercontrol) to use.
<New Useful Width>: Integer
New useful width of the element expressed in pixels.
Remarks
  • The anchors are applied in relation to the useful size and therefore they are modified if the useful width is modified.
  • If the useful width is greater than the width of the internal window (or supercontrol), a scrollbar is displayed.
  • If the useful width is smaller than the width of the internal window (or supercontrol), the useful width is ignored.
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 11/13/2023

Send a report | Local help