From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-17-2018 07:54 PM
I Creat a Table Control to display one channel data in User Dialog Box.
I want the elements in the Table to center in alignment. But i dont know how to set elements in the Table Control center alignment .thanks all
Solved! Go to Solution.
10-18-2018 08:51 PM
Hi,
You may use Property Node of the table to change the alignment of the data being displayed.
Find the control/indicator on the block diagram, right click and select Create » Property Node » Text » Justification. Create a enum constant and select "center".
Jared Loy
AE National Instruments
10-18-2018 10:44 PM
Thank you very much for your reply.
But I want to know how to implement it in DIAdem User Dialog Box.
I'm sorry I didn't specify what kind of software it was, but I thought it was in the DIAdem section and everybody defaulted to it.
10-22-2018 12:28 AM
Hi,
Sorry. I was no realized that I am in Diadem sub-forum.
To set data in table control using center alignment you may refer to these 2 links.
Thank you.
10-22-2018 10:20 AM - edited 10-22-2018 10:21 AM
Hi SmallFox,
There are 2 table controls in DIAdem SUDialogs, the older, static Table control, and the newer XTable control. The older, static Table control is simpler to use, but it can only display column content left-aligned. The newer XTable is a lot more flexible, since its cells display what a callback function of your designing determines should be dynamically displayed, and it supports left, centered and right justification.
Would it be an option for you to switch to the XTable instead of the older Table control? Otherwise you're stuck with only left justification.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
10-23-2018 03:37 AM
Thank you for your reply. Your explanation is very good. I will switch to XTable.
Thank you ,Brad Turpin,best regards!