> I'm using fltk2-6844. I had created a class that is derived 
> from fltk::Button. This class should store additional type 
> information in Widget::type() as described in the docs: 
> "Widget subclasses may store values in the range 0-99 here 
> (larger values are reserved for use by FLTK)". But when I 
> store and value in this area the button works always as a 
> toggle button.

Docs notwithstanding, I would advise against using the type to store any
additional information. I suspect that the fltk-2 code is "fragile" in
this respect, and am not all that sure about the fltk-1.x code either...

If you are making your own subclass anyway, just add some private data
(or even public!) to your class to store the extra info. there and leave
the type mechanism alone.

Also note that fltk-2 is not actively maintained, so it is unlikely ever
to be "fixed". You might be better off with fltk-1.1 or fltk-1.3.






SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to