#1
|
|||
|
|||
Change the color of button
I've created a few panels with different buttons. One of them shown below. I would like to change the button color when selected for specific panel to another color. May I know how could I do it?
For example, I would like PrimeOffButton.set(1) to be red instead of default color. PrimeOffButton = viz.addButtonLabel('Off') PrimeOffButton.set(1) PrimeKeepAliveButton = viz.addButtonLabel('Keep-Alive') PrimeKeepAliveButton.set(0) PrimeOperationalButton = viz.addButtonLabel('Operational') PrimeOperationalButton.set(0) subpanel2.addItem(viz.addText('SSRMS Prime String')) subpanel2.addItem(PrimeOffButton) subpanel2.addItem(PrimeKeepAliveButton) subpanel2.addItem(PrimeOperationalButton) Thanks. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to map HTML button to Transport in Vizconnect | JB_HP_Viz | Vizard | 3 | 02-24-2015 07:38 PM |
Push a button | snoopy78 | Vizard | 1 | 07-20-2009 09:39 AM |
Create Button or Text | Chrissy2009 | Vizard | 1 | 07-15-2009 05:34 PM |
Randomly and Continuously Change Avatar's Face Texture | Karla | Vizard | 4 | 08-22-2008 12:14 PM |
button problems | cade_mccall | Vizard | 3 | 02-22-2007 09:48 AM |