> > I'm trying to process multiple buttons with one callback, so I I want
> to
> > use user_data() to store the button's name / identifier
> This is one way to handle this, but there is another possibility:
And of course, each button (probably) already has a unique identifier string stored in its label() field anyway, which also might be used to identify the buttons in the callback.
Indeed, ISTR that one of Greg's examples shows pretty much that approach?
Hmm, maybe this one?
http://www.seriss.com/people/erco/fltk/#TouchScreenNumPad
or maybe here
http://www.seriss.com/people/erco/fltk/#Mandelbox
Dunno...
And there's some related stuff about manipulating menu callback based on the label too...
Selex ES Ltd
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.
********************************************************************