oh, and I'm afraid it is windows only...don't know how it looks like on
other OS.
2012/12/8 Fabricio Chamon xsiml...@gmail.com
Hey Gustavo, does it have to be a button ? If not, here's a very nice
trick from Jeremie Passerin:
var cp = ActiveSceneRoot.AddCustomProperty(MyCustomPSet, false );
var layout = cp.PPGLayout;
cp.AddParameter3(myBooleanParam, siBool);
item = layout.AddItem(myBooleanParam, , dscontrol)
item.SetAttribute(class, button)
item.SetAttribute(siUICaption, Toggle Button)
item.SetAttribute(siUIStyle, 0x1003)
item.SetAttribute(siUINoLabel, true)
inspectObj(cp);
...then put your code under the _OnChanged callback.