LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmaticaly insert value on a ring control wich is inside a tab

Hello,
I'm trying to programmaticaly insert values inside a ring control. This ring control is inside a tab.
If I remove the tab the InsertListItem() works fine, but if the ring is inside the tab I get an error message saying
"The control passed must be a list control."
How do I populate the ring control with data when the ring control is inside a tab?
I apreciate all the help.
Thanks in advance.
Regards,
 
Daniel Coelho
 
Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 1 of 4
(3,637 Views)

Don't forget that the Tab is effectively a different panel with a different panel handle to the main one. Bear this in mind when you pass the panel handle and control identifiers to the control's library functions.

JR

0 Kudos
Message 2 of 4
(3,634 Views)
I can only add to JR answer that the correct panel handle can be retrieved using GetPanelHandleFromTabPage ( ) function.


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

Thank you.

That is it.

I was using the wrong panel handle.

Thank you for the help.

Regards,

Daniel Coelho

 

Daniel Coelho
VISToolkit - http://www.vistoolkit.com - Your Real Virtual Instrument Solution
Controlar - Electronica Industrial e Sistemas, Lda
0 Kudos
Message 4 of 4
(3,630 Views)