single buttons
5 messages in this thread
Hello,
I see someone's finally done it, so I'll ask again. 🙂
How would I _start_ a single button in the ON (red) state?
My code "knows" the buttons in it on state, but I always had to
push it twice to get it to turn red. (blah)
please please tell me….
Don
Don,
<< I see someone's finally done it, so I'll ask again. 🙂 >>
Who's code was it?
Jonas,
The YG 's new Flame has a button labelled AUTO which works as a single push on,
push off button that starts out in the red/on state.
There is a second button which works similarly, labeled SPECIAL, in the mapping
section.
Don
Hey Don,
Try this:
int radio0=1, radio1=2;
static RadSub main_rad[]={
FILTON, feel_filter, &radio0, 0,
FILTOFF, feel_filter, &radio0, 1,
SCRADD1, feel_add_rem1, &radio1, 2,
SCRREM1, feel_add_rem1, &radio1, 3,
-1, FNULL, NULL, -1
};
By assigning a value to the "radio" variables, you can determine which button
is in the "on" state when the process begins. When the "radio" variable is
equal to its accompanying state variable, that radio button is "on".
In this example, FILTOFF and SCRADD1 are both in the "on" state and are
displayed in red when you open the dialog box because FILTOFF radio0 equals 1
and SCRADD1 radio1 equals 2.
Hope this helps,
Danny…
Danny,
Thank you, I think I understand now. Just draw the one on button,
toss a counter in the feel, then change "radio1" from there –
excellent.
much thanks,
Don