ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Internal Window functions
  • Internal window with automatic scrollbars
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Specifies the useful size of an internal window with automatic scrollbars. The useful size corresponds to the full size of the internal window:
  • Width of internal window.
  • Height of internal window.
Scrollbars will be automatically displayed if the size of the control that contains the internal window is too small.
Remark: This function can also be used to specify the useful size of supercontrols with scrollbars.
Example
sImage is string = SC_FilePicker.EDT_FILE
nWidth is int = ExtractString(BitmapInfo(sImage), 2)
nHeight is int = ExtractString(BitmapInfo(sImage), 3)
 
IW_Internal1.IMG_Image1 = sImage
IW_Internal1.IMG_Image1.Width = nWidth
IW_Internal1.IMG_Image1.Height = nHeight
WinUsefulSize(IW_Internal1, nWidth, nHeight)
Syntax
WinUsefulSize(<Internal window> , <Width> , <Height>)
<Internal window>: Window name
Name of the internal window.
<Width>: Integer
New width (in pixels) of the internal window.
<Height>: Integer
New height (in pixels) of the internal window.
Remarks

Internal window with automatic scrollbars

WinUsefulSize allows you to dynamically change the size of the internal window displayed in an "Internal Window" control.. If necessary, the scrollbars may appear or disappear when the size is changed.
Remarks:
  • The Width and Height properties change the outer size of the Internal Window control, not the size of the internal window to be used in the control.
  • The UsefulWidth and UsefulHeight properties are used to get and change the size of the internal window to be used in the control.
Component: wd300obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 10/04/2024

Send a report | Local help