Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  


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

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

ListDialog.SetCancelButtonLabel - ListDialog.SetColumnCount

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins

Start Chat