From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, May 10 – 02:30 PM CDT Saturday, May 11 (04:00 AM UTC – 07:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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.
Thank you Christina.
Great info!
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!
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.
This is an old thread, but I would be interested in playing around with that INI token, if anyone has access to it and could share it.