Jump to content

center justifying text in MC Listboxes


sydney

Recommended Posts

I have a MC Listbox with 8 rows and two columns with the text in each cell set with center justification instead of the left justify default. I had to adjust the text for each cell to achieve this; however, this was a bit of a pain. Now I need to expand to 96 rows with a vertical scroll bar and really need to set the justification on the cells in the MC LIstbox to that they are all center justified and need to do this programatically. I did not see any propertied in the MC Listbox that would help. Any suggestions?

Link to comment

You can use a property node to make the active cell in a multicolumn list box center justified. The only trick is to select all cells in a table and apply the justification to all of them. Do this by setting the selected row and column to -2. -2 is all rows or columns, -1 is the header of the row or column, and 0 is the first row or column of the table.

CenterJustified.png

(Forgive my bad snippet it's my first time)

EDIT: One note is that you only need to run this once and the table will be changed, this code can then be removed and it will keep the justification you applied.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.