> Is there a means to create multiple image buttons on a single > screen ? The images need to be loaded from .png files. And > when clicked, the image would need to return a unique identifier.
As an addition to Alvin's notes - if what you are trying do was (for example) list all the images in a directory, then you can just do something like this: - use scandir to make a list of all the files - check the extensions (or otherwise) to determine which are image files - for each image file, create a widget for it and load the image as Alvin described. To get the widgets to respond when clicked on, your best bet is maybe to derive them from Fl_Button rather than Fl_Box and just use the button callback to get your response. Alternately, derive from Fl_Box but override the handle method to process the mouse clicks and return your unique ID that way. As for a unique ID, presumably the file name is as good an ID as anything? Does that help? 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

