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


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


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


Returns OK or error.


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.


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