LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you Create a Custom Control

Is it possible to create a custom control under LabWindows ?
I want to creat a control that represents a mobile phone.
It will be a rectangle with about 4 lines of text displayed in it witch needs to be programmatically entered and the back ground colour needs to be able to be change to represent different states also programmatically.
0 Kudos
Message 1 of 2
(3,281 Views)
I don't know if it's possible to create custom controls under CVI. I can suggest you some hint to help solve your problem.

As for the second part of your question, you could use a picture ring with different pictures (with different background color) associated with the different states in your program. When program state changes you will only have to SetCtrlVal (panel, control, state) to have the picture ring display the desired colour. I guess this is a simple indicator, so you can put Control mode to indicator and hide inc/dec arrow in order to exclude operator's managing of the control.

As a workaround about the four line of text to be displayed, what about putting on top of the picture ring a simple text box or text message with transparent backgroud col
our and frame colour? At the cost of managing two different controls, the matter should work...
Roberto


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 2 of 2
(3,281 Views)