On 21 Apr 2013, at 02:47, Frank G Haymes wrote:

> I need to make a 3 position (on-off-on) toggle switch widget.
> 
> Can someone to point me to a toggle switch widget?
> 
> If one does not exist, can someone point me to an example/tutorial on how to 
> make a custom toggle switch widget?


There's no 3-position switch that I'm aware of.

When I needed this, I just put 3 radio-buttons in a group and that was fine - 
and trivial to do.

If you really have a desire for the skeumorphism of it *looking* like a 3-way 
toggle switch, I guess you could derive your won widget from Fl_Group, hide the 
3 radio buttons inside it then override the draw method to give the desired 
appearance.

There are some examples on Greg's cheat pages about creating your own button 
appearances (with GIF's and such to get the desired appearance on screen...) 
that would be a good starting point, I think.




_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to