LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a round color box?

Solved!
Go to solution

Can anyone walk me through the steps in making a round color box?

 

Thanks in advance.Smiley Happy

0 Kudos
Message 1 of 10
(5,623 Views)
like a round button? or red round LED?
Message Edited by Harold Timmis on 12-16-2009 02:49 PM
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 2 of 10
(5,621 Views)
I don't know how it was done, but look at Altenbach's messages in this thread. http://forums.ni.com/ni/board/message?board.id=170&message.id=110382#M110382
0 Kudos
Message 3 of 10
(5,596 Views)
In response to Harold Timmi, I would like to the color box to look like an LED.
0 Kudos
Message 4 of 10
(5,590 Views)

Do you need a color box because you want the user to pick a color or you want the vi to spit out a color? Or do you want the color box for some other reason?

 

If you want to make it open a color picker pallette, I don't know of a way. However you could always make a round decoration, make sure it is on the top layer and the refnum for it should be This VI.Panel.Decos[0], and then you can programmatically change it's color via a property node. See attached.

 

 

Message Edited by jaraalmonte on 12-16-2009 03:02 PM
0 Kudos
Message 5 of 10
(5,576 Views)
FYI, I read his post and he clearly says he had to make a custom control and just imported the LED graphic.
0 Kudos
Message 6 of 10
(5,569 Views)
I'm trying to do what was done for the sample Security System CLD exam where the color of an array of color boxes is varied.  I need to know how they made the color boxes look like LEDs.
0 Kudos
Message 7 of 10
(5,562 Views)

you can use a boolean to do this practice exam you don't have to use the ring control

 

here is another example that Altenbach made:

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 8 of 10
(5,551 Views)

-use a picture ring:

 

open a new custom control (since you'll want to save it as a file), drop a pict ring. (modern controls -> pict & ring -> pict ring)

 

open another new custom control and drop an LED.  right click on it to access the properties and change the ON and OFF colors to get (some of) the LED colors you want for the pict ring. close properties.  turn the LED on. Click on the wrench to select "customize mode" and it will change into tweezers.  Select the LED itself, right click, and choose "copy to clipboard.

 

now go back to the picture ring, right click on it and select "import picture from clipboard".

 

add a new blank element to the picture ring and repeat for every color you want in the picture ring (change the LED color, copy it to the clipboard, import it to pict ring)

 

You'll probably also want to change the pict ring background and border to transparent.

 

I can whip up an example if you need it.

-Barrett
CLD
0 Kudos
Message 9 of 10
(5,550 Views)
Solution
Accepted by topic author VI_Joe

Here are some old instructions.

 

While you are at it, please support my idea on this topic 🙂

Message 10 of 10
(5,539 Views)