LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

toggle button - table cell

Does anyone have an idea as to how to go about implementing a toggle button in a table cell? I am fairly new to coding in CVI and I do understand and was successfully able to insert a regular button into the table cell. However, I would like to know if anyone has been successful in adding a toggle button to the table cell. Thank you for your assistance.

 

 

 

check this awesome sex live sites: Pregnant Cams , Ebony Cams , Couple Cams
0 Kudos
Message 1 of 3
(1,512 Views)

Hi,

 

Have you tried getting the Panelhandle of the existing command button and change the controlstyle of the button by using int NewCtrl (int panelHandle, int controlStyle, char controlLabel[], int controlTop, int controlLeft).

Probably this may be helpful.

0 Kudos
Message 2 of 3
(1,427 Views)

The table control does not integrate a native toggle button so you'll have to replicate it programmatically with a bit of effort on your side.

Attached a modified version of CVI TableCells example program that handles a column with a toggle button for you to examine: it may require some coding more to replicate the exact functionality of a toggle button but it is a functional framework to start with.



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?
Message 3 of 3
(1,408 Views)