UI Interest Group Documents

Showing results for 
Search instead for 
Did you mean: 

How to Change the Decal on a Silver button

Step 1: Get the image you want to put on your button. The shipping Silver buttons use public domain images from the Open icon Library and you can find images of similar style there. You will probably want a 24x24 PNG. Save the file on disk.

Step 2: Drop a button from the palettes, e.g. the Silver OK button.

Step 3: Select the control and choose "Edit>>Customize Control" from the menu, or right-click and choose "Advanced>>Customize." A Control Editor window will open with the Control in it.

Step 4: From the menu, select "Window>>Show Parts Window."

Step 5: Right-click on the image you want to change. The Parts window shows which part you have selected, so you can verify that you have right-clicked on the right piece.

Step 6: Select "Import from File" in the right-click menu.


Step 7: Browse to the image file on disk.

Step 8: You're done! You can save the CTL or Apply Changes without saving to change the button in the VI.

Note: Silver style controls are only supported in LabVIEW 2011 and later.

Bonus: Do you want a button where the image stays centered instead of staying on the left side of the button? Use the attached CTL as your starting point and follow the same steps as above.

Christina Rogers
Product Owner, LabVIEW R&D
Member Amiri

Thank you Christina.

Active Participant pallen
Active Participant

Great info!

Patrick Allen: FunctionalityUnlimited.ca
Member NI-hilator

Beating my head against the wall trying to figure out how to keep the decal centered.  Nice that you provide a starting point so we don't have to know, but I am still curious how you did it.  Could you please share?  Thanks!

Active Participant Christina_R
Active Participant

It's not possible to configure a decal to stay centered without "secret sauce" that we put in for the Silver control development. If you need more details, PM me and I'll give you an INI token to play with, as long as you acknowledge that the secret menu items in the Control Editor could make wonky, insane controls but you want to play with them anyway.

Christina Rogers
Product Owner, LabVIEW R&D