Re: [fltk.general] [FLTK 1.1.7][Fl_Scroll] : subclassingFl_Scrolland draw() method

2007-03-25 Thread matthiasm
On Mar 25, 2007, at 12:26 PM, Mathieu Peyréga wrote: > adding > > damage(FL_DAMAGE_ALL); > > before Fl_Scroll::draw() > > solves my issue... Oh, yes, I understand now. You want the background to scroll, but your graphics stand still in relation to the window. This can only be achieved b

Re: [fltk.general] [FLTK 1.1.7][Fl_Scroll] : subclassingFl_Scrolland draw() method

2007-03-25 Thread Mathieu Peyréga
adding damage(FL_DAMAGE_ALL); before Fl_Scroll::draw() solves my issue... thank you for your help !!! ___ fltk mailing list fltk@easysw.com http://lists.easysw.com/mailman/listinfo/fltk

Re: [fltk.general] [FLTK 1.1.7][Fl_Scroll] : subclassingFl_Scrolland draw() method

2007-03-25 Thread Mathieu Peyréga
Here's "my" code... #include #include #include #include #include #include #include static Fl_Double_Window *main_win=(Fl_Double_Window *)0; static Fl_Box *a_map=(Fl_Box *)0; static Fl_Button *exit_bt=(Fl_Button *)0; static Fl_Button *clear_bt=(Fl_Button *)0; static Fl_JPEG_Image *map_backg

Re: [fltk.general] [FLTK 1.1.7][Fl_Scroll] : subclassingFl_Scrolland draw() method

2007-03-25 Thread Mathieu Peyréga
oups... sorry i misunderstood the effect of the clear button... which seems to be a clue to the behaviour i want... The issue is that my background is a bitmap and not an uniform color background... ___ fltk mailing list fltk@easysw.com http://lists.eas

Re: [fltk.general] [FLTK 1.1.7][Fl_Scroll] : subclassingFl_Scrolland draw() method

2007-03-25 Thread Mathieu Peyréga
Thank you for your long answer... even if it does not help much... as the jagg effect still exists when using the scrollbars... as it does in my code. i'll try to explain in more detail what i want to do. I want to create a "geographic map" widget that allows to show a bitmap map in background.