ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The UsefulWidth property gets and sets 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 handle>.UsefulWidth
<Current Useful Width>: Integer
Useful width of element expressed in pixels.
<Element to handle>: 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 handle>.UsefulWidth = <New Useful Width>
<Element to handle>: 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: 09/20/2024

Send a report | Local help