I have made a derived class of Fl_Input that uses a template to control what and where chars ate typed in. This saves the need for a callback to check the validity of the data input. Good for things like phone numbers, mac address and any thing else that needs to conform to a given format.
If the user types in a char that is not suitable for the string[], the keypress is ignored. It can be found here http://members.shaw.ca/lnr729/fltk/Fl_Input_Tpl/Fl_Input_Tpl.html _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

