On 16.02.2008, at 13:24, Hiba wrote:

> Good morning everybody.
> I'm beginner in the fltk development.
> I created a simple interface with menu "Open".
> I want to know how to show the corresponding browser which allow to  
> open files whith an aknown extension, and how to show the found  
> image in my interface?


You make your application react to the user selecting "open" by  
creating a callback function.

You open a file chooser by calling fl_file_chooser(...).

Then you can assign the image as part of the label to any widget in  
your desgign. See Fl_Widget::image(...)

Looking at the applications in the "test" directory can also help a lot.

----
http://robowerk.com/


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

Reply via email to