> I have a request for customizable shortcuts and mouse control in my > program and I am a little lost on how to implement this in fltk. > Does anyone have any example?
Can you expand on this a bit? What is actually wanted? I guess I "know" what customizable shortcuts means - it means allowing the user to define what keyboard combination will invoke each menu-option or widget. Is that correct? If so, there are a few things you could try. The "easy" option (i.e. what I did once) was to store all the user-invoked actions in an Fl_Preferences object and load that at app start up, setting the shortcuts at that point. Then there was a dialog to "edit" those actions and save the preferences. The downside was that you had to quit and restart the app to make the changes take effect, but the actual code was pretty painless. There are assuredly better ways! What is meant by customizable mouse control? I do not know what is wanted there... Cheers, -- Ian SELEX Galileo 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. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

