LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How I can set up text justify or Bold for the "whole column" of a Table

Hi,

It takes time to set up a cell of a Table (Front Panel)for Fonts, justify, Type ... imagine I have to set 1000 cells? Is there any better way to set up one shot for "all cells" in a column and for the "whole Table"? Any one can help me speed this up? Thanks.
0 Kudos
Message 1 of 9
(3,775 Views)
Well, you can setup the whole table by simply selecting it and going to the text dialog (F0). However, as for formatting the table by columns, I can't help you there. I haven't had much luck with that.

Good luck
0 Kudos
Message 2 of 9
(3,774 Views)
Thank you for your help, it really helps me in this case!

Regards and thanks
0 Kudos
Message 7 of 9
(3,774 Views)
> It takes time to set up a cell of a Table (Front Panel)for Fonts,
> justify, Type ... imagine I have to set 1000 cells? Is there any
> better way to set up one shot for "all cells" in a column and for the
> "whole Table"? Any one can help me speed this up? Thanks.
>


To set a property on a particular cell, you set the Active Cell to
Row and Column. If you set the value of either to -2, it will affect
the entire row or column. -2, -2 will set all cells in the table to be
active, -2, 0 will set the first column to be active, etc.

Another technique that you can use is to turn on the Panel property
Defer Panel Updates to FALSE, set the properties, then set it to TRUE.
While Defer Panel updates is FALSE, most updates on the panel will be
deferred an
d will take very little time.

Greg McKaskle
Message 3 of 9
(3,774 Views)
Greg,

Did you get your true/falses switched?

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 9
(3,774 Views)
> Did you get your true/falses switched?
>


Looks like I did. When defer is True, controls shouldn't draw, set to
False to restore and the controls will update.

Note that there were, and still may be a few bugs where the table
control didn't honor the defered panel property.

Greg McKaskle
0 Kudos
Message 5 of 9
(3,774 Views)
Hi Greg,

On a related note I would like to ask you a question.
I wrote an app. in 6.0.1 that took advantage of the defer panel updates option (that I learned about from you, thank you). I was very pleased with the effects.

Since then, I have taked the same piece of code and have started to use it in another app that I am developing now in 6.1. I no longer see any performance differences using the defer scheme like I had seen earlier. Are the charts failing to "honor" the deferments in 6.1?

Before you mentioned the table thing (above), I was just thinking that the charts have been updated such that the deferment does not make things any more efficient.

So...
Are the charts just faster now?
or
Are the charts not honoring...?
or

Is Ben just confused (it would not be the first time)?

Ben

PS On a general note: You are legendary here at Data Science Automation. I have learned alot from your posting. Thank you.
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 9
(3,774 Views)
> So...
> Are the charts just faster now?
> or
> Are the charts not honoring...?

> or
> Is Ben just confused (it would not be the first time)?



I'm not sure. If you have a case where it seems that defer isn't
working the way it should, please submit it to technical support.

One possibility is that there really isn't much to gain because
deferring is being turned on and off around each of the controls or
properties. That would be a Ben error. Another possibility is that
someone like me didn't pay attention to it where they should have. That
would be something for us to fix.

Thanks for the compliment, I'm glad that my posts help.
Greg McKaskle
0 Kudos
Message 9 of 9
(3,774 Views)
Hi,

I did try as you sugeested, but it does not work because after setting the cells to be Actived. But then ... what is the next steps if I want to set the first column to be "Bold" and in the "Center" position?

Can you explain more specific, I attach my Vi so that you can see & modify it as you wish (please send it back to me)!

Thanks & regards
0 Kudos
Message 8 of 9
(3,774 Views)