LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change font size of tree control content programatically

Solved!
Go to solution

Hi,
Can I programtically change the font size of  parent item and child item in the tree control.

In my application the parent and child items are changing  programatically. ie the content of tree control is not constant it is  dynamic.

 

I am using labview 8.6

Thank You
Assumptha.

0 Kudos
Message 1 of 10
(5,820 Views)

Right-click the tree control and select "create>propery node" then:





Message 2 of 10
(5,803 Views)

Hi Christian M.
  Thank you for ur reply. It worked Smiley Surprised

 

Regards

Assumptha

 

 

0 Kudos
Message 3 of 10
(5,800 Views)
Solution
Accepted by lra
sure it worked Smiley Wink
0 Kudos
Message 4 of 10
(5,796 Views)

That does work...  

 

To keep this line of instruction under the same title, how do you change ALL the text?  not just the active cell?  i've tried double clicking, then editing text properties using the font dialog (ctrl + 0) on a non-running vi, then saved it, and hit run.  but it always reverts to some preset font properties values, and i don't know where they're being set....???

 

Any help would be greatly apprec! 

0 Kudos
Message 5 of 10
(5,712 Views)

My question is same as joshuatree. How would I change the whole tree controls font size dynamically?  I can only change the font size of the active cell using the above said method.  What about changing each cell's font size dynamically?

 

We can do it in editing mode by Select Tree Control>>Text Settings>>Size>>(9,14,28 or whatever size we required).  This does changes font size for each individual cell.  I wan't to the same thing dynamically.

 

Thanks,

Ajay

--
Ajay MV


0 Kudos
Message 6 of 10
(5,096 Views)

Its a three year old thread !

 

 

tree.png

0 Kudos
Message 7 of 10
(5,093 Views)

Frabto,

 

    Thanks for the reply.  The solution is yet not alike changing the font of the whole tree control in edit mode.  Because, I need to know the number of rows and coloumn for the given soution.  But in my program, the tree grows dynamically (where I don't have any control over or can't edit it).

 

Thanks,

Ajay.

--
Ajay MV


0 Kudos
Message 8 of 10
(5,090 Views)

Hi,

Is it possible to change the Tree control's header font size programmatically?

 

Thanks,

Kishore N

0 Kudos
Message 9 of 10
(951 Views)

You can use the code from messages 7 and wire -1 to ActiveColNum, this selects all column headers.

 

See: https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/properties-and-methods/vi-server/generic/g... 

Message 10 of 10
(935 Views)