LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Justifying a TreeControl

I'm working with a tree control and can't justify the elements of a specified column. When a create the control, all elements are lined up to the left. I need to set them to the right side.
If someone knows a way please tell me. Gratefull.
0 Kudos
Message 1 of 8
(4,096 Views)
Here are a couple vis that I used to indent in the tree control.  There is probably a cleaner way to handle it, but it worked for me.

The vi opens a database, and gets all of the distinct dates and then sorts them by oven, year, month, and day.

They are saved in 8.1
Kenny

0 Kudos
Message 2 of 8
(4,074 Views)
The VIs didn't helped. I working with a tree control with 3 columns.
 
First column = Parents and child tags
Second column = value
Third column = unit of value
 
The third column are lined up to the left as default. i need to line up the second column to the right, but i only find a propriety to set the justification on the string object. The tree control is builded from a Excel's script. The justification can be seted on front panel, but when a load the values from the script, the alignment default to the left is seted again.
 
I think that's impossible to set, but if anyone else know a way i will be thankfull. 
 
0 Kudos
Message 3 of 8
(4,068 Views)

My mistake.  Try uing the property node Active Cell > Active Column Number.  Then use the Active Cell > String to write the sting for that column.

 

Also, check the Active Cell > Cell Justify

Message Edited by Kenny K on 01-23-2007 10:16 AM

Kenny

0 Kudos
Message 4 of 8
(4,065 Views)

I was able to do this with no problem.  I set the ActiveItemTag, then the ActiveColNum, then I set the Cell String text, and then I set the CellJustify property to justify the cell text to the right.  You will need to change the active tag and column number for every cell you want to change the justification on.  See the screenshot below:

Good luck,
-D

Message Edited by Darren on 01-23-2007 10:16 AM

0 Kudos
Message 5 of 8
(4,062 Views)
In this application i'm using the Labview 7.0. I believe that isn't this propriety on this version or i can't find it.
 
but thanks for the tip.
0 Kudos
Message 6 of 8
(4,054 Views)

You're right, this property was introduced in LabVIEW 8.0.  I don't know of any workaround if you are using LabVIEW 7.0, other than to upgrade🙂

-D

0 Kudos
Message 7 of 8
(4,049 Views)
I have the 8.0 version, but i'm working on a project for a person that don't have it. While he don't upgred his version this modification will wait 😄
 
thanks again.
0 Kudos
Message 8 of 8
(4,042 Views)