LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Darren's Weekly Nugget 12/18/2006

Here's another quick nugget, this one comes from Christina's Eyes on VIs blog.  Maybe the Auto Tool has spoiled me, but I've always had trouble using the Tab key (or the Space key) to switch between foreground and background when using the Color Picker tool (also known as the Paintbrush tool) in LabVIEW.  Usually it's when I want to give a non-transparent background to a text label.  Anyway, instead of using the Tab key to switch between foreground, background, and both, you can press the 'f' key on your keyboard to change only the foreground color, and press the 'b' key to change only the background color, while you're using the color picker.  If you want to switch back to picking both colors, that's when the Tab key comes in handy.
 
This appears to work at least as far back as LabVIEW 7.0, I didn't try any versions older than that.
 
 
-D

P.S. - Check out past nuggets here.

Message Edited by Darren on 12-18-2006 10:49 AM

Message 1 of 6
(9,463 Views)
Good to know there's a way to do that, but I'm still partial to using the spacebar. I always have my left hand on the keyboard like I'm ready to jump into a game of Half-Life, so I don't even have to move Smiley Happy
Message 2 of 6
(9,444 Views)
OK, that makes things a bit easier than exclusively using the spacebar. 🙂
 
I still have problems with the foreground/background designation, I never remember what's what. A more intuitive designation in my opinion would have been to call them e.g. outline/fill colors like in typical graphics programs. 😉
 
 
0 Kudos
Message 3 of 6
(9,430 Views)
And I believe that "A" (all) will set both foreground and background simultaneously to the same color. Never used the space bar for this, since F and B are such good nemonics.

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 4 of 6
(9,149 Views)
I'm using 7.1 and I can't get any of the keys you mentioned to do anything while in the color picker.  I tried turning off auto-tool selection in the options and it didn't help.  How can I get it to work?
 
- Brad
0 Kudos
Message 5 of 6
(6,184 Views)
Sure, it is a bit tricky to see. First, it doesn't work in the tools palette since you are always clicking on the foreground or background part of the brush tool.

Try dropping something with a foreground and background color on your front panel such as a waveform chart. Then select the brush tool and control-click on the graph area. You will see the color picker and the icon on the bottom left will have two sections. You can independently control the color of each section with F or B keys and set them both with the A key. You can also select them by clicking with the mouse on the appropriate part.

-Scott

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 6 of 6
(6,165 Views)