SetText() Failing

UrbanCyborg
Posts: 625
Joined: Mon Nov 15, 2021 9:23 pm

Re: SetText() Failing

Post by UrbanCyborg »

That would be a bummer, because I have a situation where I need several buttons working as a radio group, but where "none selected" is a viable option, just like physical radio buttons. And yes, I'm old enough to remember those things. :)

Reid
Cyberwerks Heavy Industries -- viewforum.php?f=76
User avatar
seal58
Posts: 377
Joined: Fri Jul 12, 2019 5:28 pm
Location: Rostock, Germany
Contact:

Re: SetText() Failing

Post by seal58 »

Some old radios could be shut off by tipping a radio button so light, that any active button comes out.

If you want to do a simular thing that in VMD, you could extend your toggle button group with an additional toggle and set that unvisible. If you set that toggle on with SetValue(1), the others will go off.

Roland
UrbanCyborg
Posts: 625
Joined: Mon Nov 15, 2021 9:23 pm

Re: SetText() Failing

Post by UrbanCyborg »

Thats the sort of behavior I had in mind. I've temporarily solved it by adding another (!) button, but just leaving it visible. I may change it to work your way, although having a true multi-state button would obviate the need altogether. Thanks for the tip.
Cyberwerks Heavy Industries -- viewforum.php?f=76
User avatar
seal58
Posts: 377
Joined: Fri Jul 12, 2019 5:28 pm
Location: Rostock, Germany
Contact:

Re: SetText() Failing

Post by seal58 »

You're welcome.

That's the advantage of a forum. Next time I need help. (It's a new topic)
Post Reply

Return to “Module Designer”