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
CompactToolbar (Property)
In french: CompacteBarreOutils
The CompactToolbar property is used to:
  • determine if the window toolbars are compacted.
  • compact (or not) the toolbars.
Compacting toolbars consists in removing spaces when:
  • an option of the toolbar is shown or hidden. The toolbar is automatically resized when an option is hidden.
  • a toolbar is shown or hidden. If a toolbar is hidden, the other toolbars are automatically repositioned to leave no free space.
  • a toolbar is docked or undocked.
The toolbars are not compacted if the bars are moved by the user while still being docked.
Remark: This property corresponds to the "Compact toolbars" option in the "Details" tab of the window description.
Example
WIN_MainWin.CompactToolbar = True
TBAR_Bar1.Visible = True
WIN_MainWin.CompactToolbar = False
Syntax

Determining whether the toolbars are compacted Hide the details

<Result> = <Window used>.CompactToolbar
<Result>: Boolean
  • True if the toolbars of the window are compacted,
  • False otherwise.
<Window used>: Window name
Name of the window used.

Defining whether the toolbars should be compacted Hide the details

<Window used>.CompactToolbar = <Compact>
<Window used>: Window name
Name of the window used.
<Compact>: Boolean
  • True if the toolbars of the window must be compacted,
  • False otherwise.
Minimum version required
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2023

Send a report | Local help