Re: [fltk.general] Zoom on a multitouch environment

2011-11-15 Thread Mathieu Peyréga
The problem was solved by adding the preprocessor definition WINVER=0x0601 for both FLTK dll and the application itself... > No idea - never even seen a Win7 multitouch system... (Though I'm aware > that they exist!) > > So... What events, if any, are delivered when you do the zoom gesture? > >

[fltk.general] Zoom on a multitouch environment

2011-11-15 Thread Mathieu Peyréga
Hello, i'm developping an application that runs on a Windows 7 platform with touch screen handling multi-touch. I implmented the zoom (on a map view) with the MOUSEWHEEL event. Scrolling the map is handled correctly in touchscreen mode, however, the zoom is not working... Any clues ? Best reg

[fltk.general] FLTK 1.3 Double_Window flush bug

2011-11-14 Thread Mathieu Peyréga
Hello, I experienced crash with a program that calls Fl_Double_Window::flush() too soon so that the myi pointer is NULL. I added a global null test in the methode to prevent this case... I think this should be added to trunk (1.3) Regards /** Forces the window to be redrawn. \param[in] er

Re: [fltk.general] Fl_Choice list openning direction

2011-11-14 Thread Mathieu Peyréga
FLTK 1.3 svn up to date version... I changed Fl_Choice.cxx handle method : case FL_PUSH: if (Fl::visible_focus()) Fl::focus(this); J1: if (Fl::scheme() || fl_contrast(textcolor(), FL_BACKGROUND2_COLOR) != textcolor()) { //v = menu()->pulldown(x(), y(), w(), h(), mval

[fltk.general] Fl_Choice list openning direction

2011-11-13 Thread Mathieu Peyréga
Hello, I'm using a Fl_Choice widget which is located at the very bottom of a fullscreen window. The issue is that when the list is showing up, it is shown "downward" and thus not in the window which makes it practically unusable. Is there a way to change this behaviour ? I guess I have to go

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.

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

2007-03-24 Thread Mathieu Peyréga
> If nothing helps, maybe you can boil some code down to a single page and > post it here. here it is... void C_MapView::draw(void) { Fl_Scroll::draw(); if (m_ShowCompass) { fl_color(FL_DARK_GREEN); fl_line_style(FL_SOLID, 3); fl_push_matrix();

Re: [fltk.general] Marshaling of widgets?

2007-03-23 Thread Mathieu Peyréga
i would recommand boost serialisation library... www.boost.org matthiasm a écrit : > > On Mar 23, 2007, at 9:26 PM, gga wrote: > >> I was wondering if anyone had developed a portable library to allow >> marshalling of fltk widgets. Or if someone could recommend a good way >> to do it under fl

[fltk.general] [FLTK 1.1.7][Fl_Scroll] : subclassing Fl_Scroll and draw() method

2007-03-23 Thread Mathieu Peyréga
Hello, I have a MyWidget class wich is a subclass of Fl_Scroll in which i overloaded the draw() method. almost everything works fine... except that the drawing done through fl_begin_line() ... are not redrawn correctly when I use the scrollbars... The former drawing is not erased and overlap wit