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.
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 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.