triple- or more – state toggles

Dec 13, 2007 at 6:01pm

triple- or more – state toggles

hey there.
is it possible to have/make triple-state toggles with pictctrl?

#34998
Dec 13, 2007 at 6:06pm

eg. if off, its red and gives out a 0, clicked once turns green and gives out 1, if clicked twice turns yellow and gives out a 2, and if clicked again turns back to red and gives out a 0.

#118779
Dec 13, 2007 at 6:31pm

There is no standard object that does this, but you could build something with, say, LCD and some patching logic: track count of mouse downs and cycle through states changing color.

#118780
Dec 13, 2007 at 6:38pm

would that also out a value for every state?

#118781
Dec 13, 2007 at 6:47pm

yepp. thanks
i will use a counter and then pictctrl to have a dial that will change the given pict with every mousedown/value.

great.

thanks :)

#118782
Dec 13, 2007 at 8:50pm

You found a solution, but have a look at the matrixctrl object, which allows multiple states.

_
johan

#118783
Dec 13, 2007 at 11:48pm

Could use a ubutton, panel, and a counter banging some brgb messages…

On 13/12/2007, jvkr wrote:
>
>
> You found a solution, but have a look at the matrixctrl object, which
> allows multiple states.
>
> _
> johan
>

#118784

You must be logged in to reply to this topic.