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  

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

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


ListDialog.SetCancelButtonLabel - ListDialog.SetColumnCount

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins

Start Chat