Simple UI setup of three similar radioButtonGrps that allow a user to choose from each, with a reset button positioned beside each.
Each reset btnCmd performs a slightly different task, and to simplify a global reset I'd like one button to activate each one, rather than copy the appropriate code from each to this master button.
Any clues as to how I could activate the buttons in this fashion would be greatly appreciated.
Cheers
Hi Giragast...
I'm a little confused by what you're trying to do here. Tell me if this is correct:
- You have three separate radio button groups
- Each of these groups has some radio buttons in it
- There is a "reset" button that goes with each group
----> (what does it reset? back to default radio button?)
- You want to create a way to "activate" each of these reset buttons (which I'm assuming you mean "enable") for some reason I'm not too clear on...
- Somewhere in here there may or may not be a "master" button...
If you could clear up some confusion on my end...what are the "reset" buttons for? And why do you need to activate them? Not sure I understand the tool...will help though, if I can get a clearer picture.
Thanks for the reply 
I've included a brief, simplified version of the working code...should be self-explanitory.
Example Code
Since the initial post, I've altered the code from how it appears (and stopped being awkward), so that each the Cmd for each 'x' button is called by way of something like resetMe($btnNum);
This allows me to call resetMe(0); from the master button and clear each without extra hassle
Fixes the idea fine, but its just a workaround for what I was really after...
If it were possible to remotely activate a button, without having to have knowledge of the cmd attached to it, I'd find it very useful for this and other UI work.
...actually...
Pulling-head-out-of-arse Code
That works nicely, was hoping for a button -e -activateCmd style solution, but returning the cmd by button -q -c and running an eval() on the return works nicely.
Thanks for the time anyway, should've thought it through a little more 