10-10-2012 01:41 AM
Hi All,
I do want to make invisible the decal images of boolean controls.
How I can do this programatically?
Is there any property node is available in scripting?
Thank you,
Yogesh Redemptor
10-10-2012 05:17 AM
Hi Yogesh,
You can use the paintbrush tool in the Tools Palette to set colours of front panel objects. To open the tools palette navigate to "View -> Tools Palette". You can then use the paintbrush by selecting a colour and left clicking on the control you wish to change.
The screenshot attached shows how to set the current colour to transparent.
Many thanks,
10-10-2012 04:14 PM
Eden,
Yogesh wants to do this programmatically.
How I can do this programatically?
10-10-2012 04:44 PM
You will need to "cheat" on this one since you can't Show/Hide the glyph at run time. The simplest means would be to have two buttons one with the glyph one without one off screen and swap their positions when you want to change appearance. Handle both value change events in the same case.
10-10-2012 04:44 PM - edited 10-10-2012 04:45 PM
Edit - Jeff's answer was better than mine.
10-10-2012 04:48 PM
@JÞB wrote:
You will need to "cheat" on this one since you can't Show/Hide the glyph at run time. The simplest means would be to have two buttons one with the glyph one without one off screen and swap their positions when you want to change appearance. Handle both value change events in the same case.
Could you also have them in the same place and hide/show them as needed? All you need then is a boolean and its NOT to control the show/hide properties?
10-10-2012 05:42 PM - edited 10-10-2012 05:44 PM
@billko wrote:
@JÞB wrote:
You will need to "cheat" on this one since you can't Show/Hide the glyph at run time. The simplest means would be to have two buttons one with the glyph one without one off screen and swap their positions when you want to change appearance. Handle both value change events in the same case.
Could you also have them in the same place and hide/show them as needed? All you need then is a boolean and its NOT to control the show/hide properties?
Yes, that wouls be what I would recommend.
Yet another alternative is to make your button transparent and place a picture control under it. You can then change the picture to whatever you want and you have a single button to manage in terms of the events.
10-10-2012 05:47 PM
10-10-2012 07:32 PM
Personally I like to use invisible Tab controls instead of futzing with positions and visibility.
10-10-2012 08:11 PM