LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CUSTOM Control

I try to build a cutom control, which simluates the action of a switch. This control shows like a real relay, see below. And I'm referring the examples in "C:\Program Files\National Instruments\CVI71\toolslib\custctrl". Unfortunately, no whole projects that I could refer is under that foder. So I post here and ask from help:1, a whole project example;2, Instruction/Manul on how to build a custom control. Besides, in order for better describing my question, I attached a screenshot here. Thanks a lot Jacky / ____/ ____ open relay ___________ shut relay
0 Kudos
Message 1 of 4
(3,603 Views)
You might be able to achieve what you want by using a Picture Ring control. For example, you could generate two bitmaps (using Paint, or whatever) which showed the two different graphic states of your 'switch', attach them to the Ring control then use the control's callback to display one or the other, depending on your program.
 
JR
0 Kudos
Message 2 of 4
(3,592 Views)
Thanks!
Then is there any project/example that I can refer to create a cutom control by writing codes like under "C:\Program Files\National Instruments\CVI71\toolslib\custctrl"?

Thanks
Jacky
0 Kudos
Message 3 of 4
(3,593 Views)
The attached project shows what I was trying to describe earlier. It might prompt a few ideas of your own. I apologise in advance for the pitiful graphics - art was never my strong point. Smiley Happy
 
JR
0 Kudos
Message 4 of 4
(3,585 Views)