LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Table resizing causes error

While using tables in a panel, on resizing the panel(maximise) it gives an error "The attribute value passed is invalid". Scale contents of resize has been enabled for the panel
0 Kudos
Message 1 of 2
(3,032 Views)
What version of CVI are you using? There seems to be a bug in CVI 7.0 resizing an empty table. If your table is empty, add a row and column to it. Here are some details from LuisG at NI.
"There is a known bug in CVI 7.0 that causes LoadPanel to return this error when the following is true:

1. You have Scale Contents on Resize enabled
2. The screen resolution in the computer where you're loading the panel is different from the one where you last saved the panel
3. You have an empty table in your panel (i.e. a panel without any rows or columns)


If all of these are true in your case, then this is the problem you've run into. To work around it, you will have to change one of those conditions. The most obvious would be to create at least one column or one row for
the table in the UI editor, or if that's not possible, you can create the table programmatically immediately after loading the panel, using the NewCtrl function.


I apologize for the inconvenience.


Luis
NI"

Click here for the original discussion "Can not load panel" and scroll down to see Luis's comments.
0 Kudos
Message 2 of 2
(3,032 Views)