ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
The MaxButtonWidth property is used to get and set the maximum width of a button in a tab pane.
Example
TAB_MyDynTab.MaxButtonWidth = 200
Syntax

Getting the maximum width of a button in a tab pane. Hide the details

<Result> = <Tab control>.MaxButtonWidth
<Result>: Integer
  • 0, no limit is defined for the maximum width of a button in a tab pane.
  • Maximum width (in pixels) of a button in a tab pane.
<Tab control>: Control name
Name of the Tab control to be used.

Setting the maximum width of a button in a tab pane. Hide the details

<Tab control>.MaxButtonWidth = <Width>
<Tab control>: Control name
Name of Tab control to use.
<Width>: Integer
  • Maximum width (in pixels) of a button in a tab pane.
  • 0 to specify no limit.
Remarks
  • The MaxButtonWidth property is used to limit the size of buttons when the Tab control uses the option "Pane size: fit to text" ("Details" tab in the control description window).
  • Case of dynamic tabs: The text of the tab is automatically calculated. The MaxButtonWidth property allows you to avoid having overly long text and overly large buttons.
  • If the text of buttons exceeds the specified size, the text is displayed with an ellipsis at the end ("...").
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help