LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change the font size in a table?

One of our foreign customers is having a problem reading some of the text. As such we are implemnting a way to programatically change the font size on the panels. The environment is CVI. I can change everything fine except for the font in tables. Is there a way to immediatly change the font size in the table, or cause the table to refresh so the changes will take effect? Thanks.
0 Kudos
Message 1 of 2
(2,925 Views)
You can resize the font in a table by using the SetTableCellRangeAttribute. To resize the entire table, you can use for example

SetTableCellRangeAttribute (panel, control, VAL_TABLE_ENTIRE_RANGE, ATTR_TEXT_POINT_SIZE, size);

passing an integer to the parameter.

This will change the font size but has no effect to the column and row width, which could need to be modified to make all text in the cells visible.

Hope this helps
Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,925 Views)