Just to say thanks
good bye



> > Hi again,
> > I've just test your program, here are some remarks:
> > 1. probably a mistake, in struct  unsigned short bfType;, bfType is an 
> > integer, you assign a ??, not a char and not int : hf_bmp.bfType='MB'; with 
> > simple quote: a char but MB are two.
> > 2. The save is a bmp format how to reload it to complete it for example
> > 3. I you add anything in the box out the oevrlay it is not stored.
> >   For example if you add a input widget and you input the word  "OK", the 
> > word "OK" is not saved, even you enclose it in the selection rectangle.
> > you get only the lines you 've drawn,  So you don't save the whole 
> > rectangle, you save only a layer
> >
> > 4. for an electronic circuit you place objects and need their track (in a 
> > list for example) to reload it later or complete it.
> >
> > Anyway it is a good trial, may be needs improvement
> > thanks again
> > bela
> >
> >
> >
> I try to answer to your questions
>
> 1. my compiler show a warning, but it work!
>    (you can split it in two chars, if you dont want to see the warning)
>
> 2. use Fl_Shared_Image().
>    example (for loading):
>
> *****
> void load_file(const char *n) {
>   if (img) img->release();
>
>   img = Fl_Shared_Image::get(n);
>   if (!img) {
>     fl_alert("Image file format not recognized!");
>     return;
>   }
> *****
>
>   I will try to make it in the app (pix.fl)
>
> 3. dont know, maybe if you subclass a Fl_Group instead of Fl_Box, I will try.
>
> 4. you have to manage a file with the images list, and use same widgets to 
> make a choice, and to add new images.
>
>
> Now I have no time to try to do the examples, sorry, maybe this evening (now 
> it is 2 pm for me)
>
> bye
> rogx

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

Reply via email to