Eugen Graf Posted July 18, 2007 Report Share Posted July 18, 2007 Hello, I want to decorate my buttons with some icons. So I created a custom boolean control and add a icon from a file. Then I changed to customize mode an placed this icon over my button. Now I can't click the button on the icon, because the picture(icon) hide the button area. Thanks, Eugen I attach my VI with my customized Control. Eugen Quote Link to comment
Wolfram Posted July 18, 2007 Report Share Posted July 18, 2007 Take this control. The trick is to put the text over the icon. Wolfram Quote Link to comment
Ton Plomp Posted July 18, 2007 Report Share Posted July 18, 2007 QUOTE(Eugen Graf @ Jul 17 2007, 04:25 PM) Hello, I want to decorate my buttons with some icons. So I created a custom boolean control and add a icon from a file. Then I changed to customize mode an placed this icon over my button. Now I can't click the button on the icon, because the picture(icon) hide the button area.Thanks, Eugen I attach my VI with my customized Control. Eugen Hi Eugen, I am currently working on an XControl for the CR covering this, only have to finish.... If your interested you can beta-test. Ton Quote Link to comment
Eugen Graf Posted July 18, 2007 Author Report Share Posted July 18, 2007 QUOTE(Wolfram @ Jul 17 2007, 05:38 PM) Take this control. The trick is to put the text over the icon.Wolfram Thank you Wolfram. But what happens if I change the size of the button? Or if I want to write some other text into the button? I want to make a controls library for my projects. Those controls should have the same properties like a LV-Button (not a picture control), e.g. they should be resizeable and the background color should be changeble. I tryed to replace my Button-Picture completely by an another picture, but I can't change the background color of them. Any more ideas? Eugen QUOTE(tcplomp @ Jul 17 2007, 05:49 PM) Hi Eugen, I am currently working on an XControl for the CR covering this, only have to finish.... If your interested you can beta-test. Ton Sure. Thank you too. Eugen Quote Link to comment
Michael Aivaliotis Posted July 18, 2007 Report Share Posted July 18, 2007 Read this thread: System button with image Quote Link to comment
Eugen Graf Posted July 21, 2007 Author Report Share Posted July 21, 2007 Thanks to all. Rolfk have help me. I have had to take a push button and replace the "LED" with my icon. Eugen 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.