ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WINDEV Mobile 2024 feature!
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 FlexGrow property gets and sets the grow factor of an item in a line of a Flexbox control.
Depending on the direction, if the Flexbox control is enlarged, items will grow horizontally or vertically to take up the available space (flex-grow).
Example
// Characteristics of items in the Flexbox control
FLEX_MyFlexbox.BTN_MyButton.FlexGrow = 2
FLEX_MyFlexbox.BTN_MyButton.FlexAlignSelf = fbasStretch
FLEX_MyFlexbox.BTN_MyButton.FlexShrink = 2
Syntax

Getting the grow factor of an item Hide the details

<Result> = <Control used>.FlexColumnGap
<Result>: Integer
  • 0, no growth.
  • 1, default grow value. Depending on the direction of the Flexbox control, items will grow evenly to take up the available horizontal or vertical space.
  • other value: items will grow proportionally using this value to take up the available horizontal or vertical space.
<Control used>: Control name
Name of the item within the Flexbox control.

Setting the grow factor of an item Hide the details

<Control used>.FlexColumnGap = <Grow factor>
<Control used>: Control name
Name of the item within the Flexbox control.
<Grow factor>: Integer
New grow factor:
  • 0, no growth.
  • 1, default grow value. Depending on the direction of the Flexbox control, items will grow evenly to take up the available horizontal or vertical space.
  • other value: items will grow proportionally using this value to take up the available horizontal or vertical space.
Minimum version required
  • Version 2024
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/02/2024

Send a report | Local help