12-16-2009 01:43 PM
Can anyone walk me through the steps in making a round color box?
Thanks in advance.
Solved! Go to Solution.
12-16-2009 01:49 PM - edited 12-16-2009 01:49 PM
12-16-2009 02:34 PM
12-16-2009 02:42 PM
12-16-2009 03:02 PM - edited 12-16-2009 03:02 PM
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.
12-16-2009 03:05 PM
12-16-2009 03:10 PM
12-16-2009 03:20 PM
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:
12-16-2009 03:20 PM
-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.
12-16-2009 03:32 PM