LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Transparence Table bug

Hi, all
I'm working in LV 8.20
I have table that have transparent background. Assume some cells of it have text. Now when you remove text in cell, you continue to see this text in background, only when you click in another cell you will see that text was removed.
Somebody know how to prevent this bug?
 
Thanks, Nadav Chernin
0 Kudos
Message 1 of 6
(5,120 Views)
I think this is a very special case that revelas how the table is implemented.
 
When you are editing a cell it appears a text box is placed over the cell and the user interacts with it.
 
On the plus side, if you do not click out of the cell after deleting its contents but click escape, your edit is aborted and the original text is un-touched.
 
When you delete some or all of the test in the text box, it back ground color is white and is sized to fit the string instead of the cell size. This part is consistatn with how string entries look and is usefull in spotting non-printable characters but...
 
In this specail case, the transparency lets you see the original un-modified text in the table behind.
 
At first thought you would think that the tables contents should update as the user updates the cell but ...
 
that would give us very bad performance if there was a lot of data in the table!
 
So the "fix" would be to make the text box background always be white and to NOT re-size with its contents.
 
Since this case is SO specail, I would not expect this to be changed very soon.
 
Attached you will find a LV 8.2 demo that gets you started with a work around. If you chosse to go thise route there will quite a bit of work to replicate all of the functionality found in the table.
 
 
I'll post this ti the Bug List to let NI know about this special case.
 
Ben

Message Edited by Ben on 12-10-2006 10:00 AM

Message Edited by Ben on 12-10-2006 10:03 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Download All
0 Kudos
Message 2 of 6
(5,119 Views)

Yes, the table is definitely a problem. See for example this thread.

I can't say that I see exactly what you're describing (in 7.1), but setting KeyFocus to F might be the workaround you need.


___________________
Try to take over the world!
0 Kudos
Message 3 of 6
(5,107 Views)

This is what it looks like after you deleted the text but BEFORE you have clicked out of the cell.

Ben

Message Edited by Ben on 12-10-2006 10:34 AM

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 6
(5,106 Views)


@Ben wrote:

This is what it looks like


Not in 7.1 - when you click inside a cell, it is filled with white. Looks like someone decided to be clever and missed a corner case.

Edit - this is what it actually looks like. It appears that the code capture tool removes focus from all the selected objects.

Message Edited by tst on 12-10-2006 06:48 PM


___________________
Try to take over the world!
0 Kudos
Message 5 of 6
(5,099 Views)
Hi Nadav,

This was reported to R&D (# 452E7VX6) for further investigation.  A possible workaround is to only set the foreground of the table to transparent.  When only the foreground is set to transparent this behavior is not noticed.  Thanks for the feedback!!

Message Edited by cphuong on 01-03-2007 04:44 PM

Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 6 of 6
(4,988 Views)