PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
  • Internal window with automatic scrollbars
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
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 is also 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>: Character string (with or without quotes)
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 is used to dynamically resize the internal window displayed in an "Internal window" control. If necessary, the scrollbars may appear or disappear during this modification.
Remarks:
  • ..Width and ..Height modify the external size of the Internal Window control (and not the size of the internal window that must be used in the control).
  • Versions 20 and later
    ..UsefulWidth and ..UsefulHeight are used to find out and modify the size of the internal window that will be used in the control.
    New in version 20
    ..UsefulWidth and ..UsefulHeight are used to find out and modify the size of the internal window that will be used in the control.
    ..UsefulWidth and ..UsefulHeight are used to find out and modify the size of the internal window that will be used in the control.
Component : wd250obj.dll
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment