> On 09/19/12 10:00, Doug Parks wrote:
> >>   Fl_BMP_Image jpg("C:/Users/Marick/My Pictures/image.bmp");
> >>
> > After looking at my code again for the 1000th time I just realized I was
> using an invalid file path.  There is no "My Pictures" only a "Pictures"
> folder.


>       I wonder if we could make error checking more obvious for the default
>       behavior in FLTK for this type of thing.
> 
>       I can think of three possible ways to help:
> 
>               o A global Fl::option() to control how image errors are shown
>               o An error_callback() to be called when the image can't be 
> loaded
>               o Adjust the docs + examples to include error checking

Could do - though I'm a big fan of just calling access() on the path before I 
try to use it - that pretty quickly filters out any mistakes...! (And works on 
all the platforms I support too, which is handy.)





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

Reply via email to