LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom control round button

I want to create a round (or oval) boolean control with some "art" on it.  Actually the art consists of a single musical note (like an eighth note) to indicate that if you press the button a musical tone will play.

With a rectangular button this is simple enough:  just go to customize, copy the rectangular button image, paste it into Paint, modify it in Paint and then put it back on the button.

But I cannot seem to do this with a round button.  The image created in Paint is always rectangular (actually it is the oval button surrounded by white background).  When I paste back the image onto the button it copies back all of the white stuff.

Do I need a better Paint program?  Is there some labview trick I am not familiar with?  Has anybody succeeded in doing this?

As an aside, it would certainly be nice if the Labview customize capability had some rudimentary built-in graphic editing capability.

David


Message 1 of 6
(7,013 Views)

What I suggest is that you customize the push button, which has an extra image.

To have transparency, you need either a transparent GIF\PNG or a WMF image.

Paint can't do either of them, but Office can create WMF. Have a look here.


___________________
Try to take over the world!
Message 2 of 6
(6,995 Views)
Thanks for your help. I looked at all of the links you supplied and I have learned an enormous amount about customization.

That being said I was never quite able to do what I wanted using Office graphics. Despite the fact that I did everything I could to create an image in Office with a transparent background, it didn't work. When I pasted the image back into the customized control I still got a really ugly thing with an oval surrounded by a black rectangle. and some jagged white space around the oval. Furthermore the result did not scale and looked even worse when I shrunk or expanded it.

On a lark I tried it on a Mac using Labview and Adobe Illustrator and I got it to work. So your advice is fundamentally correct and it is probably my lack of knowledge of Office graphics which is the problem.

In any case I found a very nice rectangular control with an LED on it in another thread which works quite well for my application and I have decided to go with it.

David
0 Kudos
Message 3 of 6
(6,969 Views)

I agree that working with EMF files imported from Office doesn't always work nicely, but I simply never tried any other program for creating them.


David Lieberman wrote:

In any case I found a very nice rectangular control with an LED on it in another thread which works quite well for my application and I have decided to go with it.


That would most likely be the push button I refered to.


___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(6,951 Views)
Good Morning
I'm using Labview 8, to make aquisitions and measurement of volatge & resistance, i want that my application be very speed possible.
I don't know what must I use ?
- drivers of instruments "keithley 2700".
-Or developp a new driver, using the library GPIB and VISA ?
-Or i use the assistant I/O of instruments, where i can write instructions one after the other .
Thank you.
0 Kudos
Message 5 of 6
(6,949 Views)

Badr,

You've hijacked a thread that has nothing to do with your question. You should post a new question to the Instrument Control board. In any case, if you have a 2700, start with the driver. If you find that you need to acquire data faster, the possibility exists that the driver itself could be optimized or there could be a problem with your code. It's impossible to say without seeing what you have written or knowing what speed you actually want.
Message 6 of 6
(6,935 Views)