LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting a panel with a control array as a tab page returns error accessing the control array

I am trying to develop a adaptive UI in CVI 2015 but I am getting unexpected errors.

 

Based on the display size, a specific panel in my application can either be shown as a stand-alone panel (actually a popup panel) or included in an existing tab control on the main application panel. The problem lies in that on the panel there are some control arrays and I have problems trying to access them when the panel is loaded into the tab page, with GetCtrlArrayFromResourceID () returning error -24 (Invalid panel ID or menu bar ID in resource file). Non problem when the panel is shown standalone.

 

Now, there is a similar situation when panels are duplicated that should be fixed in CVI2013 (CAR ID 364746), and the thread I am referring to specifically speaks about tab pages, but I have even tried duplicating a tab page with control arrays and get the same error so there seems that the error has presented again in CVI2015.



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 1 of 6
(3,478 Views)

Attached a small example that exhibits the described error when duplicating a top-level panel, adding a panel into a tab control and duplicating the tab control.



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 6
(3,450 Views)

It seems indeed the same behaviour but I replicated same error -24 with CVI 2013.

I think that the only option here is to fill another CAR.

0 Kudos
Message 3 of 6
(3,430 Views)

Ok, please keep us informed on this matter when there will be some updates.

 

In the meanwhile I went back to the old array of control IDs method Smiley Wink



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 4 of 6
(3,427 Views)

Good!

In the meantime I filled a CAR (#603790). I will keep you informed on the next steps! 🙂

0 Kudos
Message 5 of 6
(3,390 Views)

This problem is listed as solved in CVI2017 Bug Fix list



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 6 of 6
(2,756 Views)