Kalle Posted October 10, 2005 Report Share Posted October 10, 2005 I just want to make the GUI better on my VI. And I realy want to use pictures innsted of normal "square" buttons from labview. Is this possible? Kalle (sorry my language..) Quote Link to comment
Yair Posted October 10, 2005 Report Share Posted October 10, 2005 I just want to make the GUI better on my VI.And I realy want to use pictures innsted of normal "square" buttons from labview. Is this possible? Kalle (sorry my language..) You can customize a boolean control to have an image by right clicking it and selecting Advanced>Customize. You should read the LV help and user manual about how to customize controls. Another option is to use a combination of a picture control and mouse down events, so you can even change your pictures. A third option is using a picture ring, which allows you to hold several images. You can disable the control and detect the mouse down event for it to know when it was clicked. Quote Link to comment
peteski Posted October 11, 2005 Report Share Posted October 11, 2005 You can customize a boolean control to have an image by right clicking it and selecting Advanced>Customize. You should read the LV help and user manual about how to customize controls.Another option is to use a combination of a picture control and mouse down events, so you can even change your pictures. A third option is using a picture ring, which allows you to hold several images. You can disable the control and detect the mouse down event for it to know when it was clicked. Another "quick and dirty" method I've used in the past is to place a picture on the front panel, then to put a "rectangular" button over it (matching the picture's height and width) and then give the button a transparent color - at least when in the default state. I've attached an example, which has a subtle change to the above instructions such that I make the non-default state a color of red, and changed the "mechanical action" to be "latch when released". This causes the button to flash red briefly before it goes back to its default "transparent" value. Most important for this to work! The picture MUST be behind the "transparent" boolean control, not in front of it. Otherwise, at run time the picture will block the user from pressing the boolean! -Pete Liiva Download File:post-2931-1129051239.vi Quote Link to comment
Mike Ashe Posted October 11, 2005 Report Share Posted October 11, 2005 Of course, you can also use an event structure that detects when you click on a picture control and use that instead of a boolean. Slightly more work, lots more flexibility. Seems I recall that the LabVIEW GUI book had a nifty example code in it that replicated the functionality of the Outlook sidebar using the picture control and lots of setup options for the "buttons" that were loaded at startup from picture files. Quote Link to comment
Michael Aivaliotis Posted October 12, 2005 Report Share Posted October 12, 2005 I just want to make the GUI better on my VI.And I realy want to use pictures innsted of normal "square" buttons from labview. Is this possible? Lots of good suggestions here. I would lean towards replacing the button images with imported *.png images (for transparency). Easy enough to do in the control editor. Quote Link to comment
Etienne Posted June 27, 2008 Report Share Posted June 27, 2008 Hello, I've been looking for a way to replace le "Caption" of a button by an Icon/Picture, in a "Toolbar" fashion. The methods proposed in this topic are quite ugly (although doable). Is it really possible that LabView doesn't support natively this feature when their own interface is full of it? In the "Toolbar Using Splitter.vi" example they seem to implement it quite nicely but I have no idea how to make something like that. Any info is welcome Cheers ! Quote Link to comment
Ton Plomp Posted June 27, 2008 Report Share Posted June 27, 2008 QUOTE (Etienne @ Jun 26 2008, 05:44 AM) Any info is welcomeCheers ! Hi etienne, You could use the http://forums.lavag.org/Boolean-XControl-file104.html' target="_blank">Boolean XControl to have buttons with configurable icons Ton Quote Link to comment
Etienne Posted June 27, 2008 Report Share Posted June 27, 2008 QUOTE (tcplomp @ Jun 26 2008, 12:23 PM) You could use the http://forums.lavag.org/Boolean-XControl-file104.html' target="_blank">Boolean XControl to have buttons with configurable icons Looking good ! Thanks ;-) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.