Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

ListDialog.SetColumnAlignment

Sets the column alignment.

Component Version macOS Windows Linux Server iOS SDK
ListDialog 11.2 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "ListDialog.SetColumnAlignment"; Index; Alignment )   More

Parameters

Parameter Description Example
Index The index of the column starting with zero for the first one. 0
Alignment The new alignment to use.
0 = default from OS
1 = left
2 = center
3 = right
3

Result

Returns OK or error.

Description

Sets the column alignment.
Seems like Windows only allows left align for first column.
And you may need to set widths on macOS if you use right/center alignment.

Examples

Sets column alignment to center for second column:

Set Variable [ $r ; Value: MBS("ListDialog.SetColumnAlignment"; 1; 2) ]

See also

Release notes

Blog Entries

This function is free to use.

Created 3th May 2021, last changed 3th May 2021


ListDialog.SetCloseDialogOnDoubleClick - ListDialog.SetColumnCount