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 FlexShrink property gets and sets the shrink factor of an item in a line of a Flexbox control.
Depending on the direction, if the Flexbox control is reduced, items will shrink to adapt to the available horizontal or vertical space.
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 shrink factor of an item Hide the details

<Result> = <Control used>.FlexShrink
<Result>: Integer
  • 0, no shrinking.
  • 1, default shrink value. Depending on the direction of the Flexbox control, items will shrink evenly to adapt to the available horizontal or vertical space.
  • Other value: items will shrink proportionally using this value to adapt to the available horizontal or vertical space.
<Control used>: Control name
Name of the item within the Flexbox control.

Setting the shrink factor of an item Hide the details

<Control used>.FlexShrink = <Reduction factor>
<Control used>: Control name
Name of the item within the Flexbox control.
<Reduction factor>: Integer
New shrink factor:
  • 0, no shrinking.
  • 1, default shrink value. Depending on the direction of the Flexbox control, items will shrink evenly to adapt to the available horizontal or vertical space.
  • Other value: items will shrink proportionally using this value to adapt to 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