AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de ventanas
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
Returns the width of a window, adapted to the content of controls.
Example
// Displays the Table control
TableDisplay(WIN_Price.TABLE_Price)
// Calculates the proper width
nWidthOK is int
nWidthOK = WinGiveSuitableWidth(WIN_Price)
IF nWidthOK < 640 THEN
WIN_Price.Width = nWidthOK
ELSE
WIN_Price.Width = 640
END
Syntax
<Result> = WinGiveSuitableWidth([<Window>])
<Result>: Integer
Width adapted to the content of the controls for optimizing the display of controls in the window. This width is expressed in pixels.
<Window>: Optional window name
Name of the window to be used. The current window will be used if this parameter is not specified.
Remarks
The calculation of the width adapted to the window is possible only if the window contains one of the following controls anchored in width:
  • List Box control,
  • Table control,
  • Looper control,
  • TreeView control,
  • ListView control,
  • Multiline edit control.
Component: wd290obj.dll
Versión mínima requerida
  • Versión 17
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local