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 FlexAlignSelf property gets and sets the alignment of an item along the cross axis of a Flexbox control (corresponding CSS property: "align-self").
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 alignment of an item along the cross axis of a Flexbox control Hide the details

<Result> = <Control used>.FlexAlignSelf
<Result>: Integer constant
Alignment of an item in a Flexbox control:
fbasAutoThe alignment of the item along the cross axis is defined by the Flexbox control.
fbasBaselineAlignment is set based on the text baseline.
fbasCenterThe item is centered along the cross axis.
fbasEndThe item is positioned at the end of the line.
fbasStartThe item is positioned at the start of the line.
fbasStretchThe item will stretch to fill the Flexbox control along the cross axis.
<Control used>: Control name
Name of the item manipulated in the Flexbox control.

Setting the alignment of an item along the cross axis of a Flexbox control Hide the details

<Control used>.FlexAlignSelf = <New alignment>
<Control used>: Control name
Name of the item manipulated in the Flexbox control.
<New alignment>: Integer constant
New alignment of the item along the cross axis of the Flexbox control:
fbasAutoThe alignment of the item along the cross axis is defined by the Flexbox control.
fbasBaselineAlignment is set based on the text baseline.
fbasCenterThe item is centered along the cross axis.
fbasEndThe item is positioned at the end of the line.
fbasStartThe item is positioned at the start of the line.
fbasStretchThe item will stretch to fill the Flexbox control along the cross axis.
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