Re: [fltk.general] make failed

2009-07-17 Thread Albrecht Schlosser
James Hearon wrote: > Hi, > I've tried several versions of FLTK but cannot seem to get thru make. Any > suggestions? > > filename_list.cxx: In function �int fl_filename_list(const char*, > dirent***, int (*)(dirent**, dirent**))�: > filename_list.cxx:93: error: invalid conversion from �in

Re: [fltk.general] How to attach scrollbar for Multiline_output

2009-07-17 Thread MacArthur, Ian (SELEX GALILEO, UK)
> fltk 1.1.1 and it is 2001/11/12 dated. Ouch! That is very old... You should at least try 1.1.9. It is ABI and API compatible, so your existing code should "Just Work" and has *a lot* of new features and bug fixes. SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, C

Re: [fltk.general] make failed

2009-07-17 Thread MacArthur, Ian (SELEX GALILEO, UK)
> I've tried several versions of FLTK but cannot seem to get > thru make. Any suggestions? > > filename_list.cxx: In function 'int fl_filename_list(const > char*, dirent***, int (*)(dirent**, dirent**))': > filename_list.cxx:93: error: invalid conversion from 'int > (*)(const void*, const voi

Re: [fltk.general] How to attach scrollbar for Multiline_output

2009-07-17 Thread Roman Kantor
In that case you shoould realy try newer version (1.1.9?). You do not need to "make install" of new version if you do not want to modify your system, just inform your compiler (prepend -I**, -L**) about header/library directories where your new fltk is sitting and link to fltk statically. Static li

Re: [fltk.general] How to attach scrollbar for Multiline_output

2009-07-17 Thread Purnachandra
> Purnachandra wrote: > > In my version Fl_Text_Display is not available. If I install new version > > of FLTK all my old application might effected. Is there any other options? > > Try Fl_Browser then. > > That should be there, even in the very old versions of FLTK, > and will sh

[fltk.general] can't stop animation, it runs forever

2009-07-17 Thread andrei_c
Hello everyone, I was trying to make some simple program that involves animation, and I came up whit the idea of making a program that draws a rectangle at a different position each half a second.That seems pretty simple.I managed to do that, but until I exit the aplication, the animation never

Re: [fltk.general] can't stop animation, it runs forever

2009-07-17 Thread Edzard Egberts
andrei_c schrieb: > Hello everyone, I was trying to make some simple program that > involves animation, and I came up whit the idea of making a program > that draws a rectangle at a different position each half a > second. Nice, I thought it would be funny to see this. > int main() { // srand(t

Re: [fltk.general] can't stop animation, it runs forever

2009-07-17 Thread andrei_c
> Nice, I thought it would be funny to see this. > > > int main() { > // srand(time(0)) > > When compiling, this was shown as problem and I deactivated this line by > comment. After that the program started and worked right the way it was > ment to work - after eleven jumps of rectangle the progra

Re: [fltk.general] can't stop animation, it runs forever

2009-07-17 Thread imacarthur
On 17 Jul 2009, at 19:33, andrei_c wrote: > void Canvas::timer_cb(void *v) > { > Canvas *c = (Canvas *) v; > c->redraw(); > Fl::repeat_timeout(0.5,timer_cb,c); // 0.5 s delay > n_frames++; > > if(n_frames > 10) // this should stop the animation but it doesn't > Fl::remove_timeout(tim

Re: [fltk.general] can't stop animation, it runs forever

2009-07-17 Thread andrei_c
> > On 17 Jul 2009, at 19:33, andrei_c wrote: > > void Canvas::timer_cb(void *v) > > { > > Canvas *c = (Canvas *) v; > > c->redraw(); > > Fl::repeat_timeout(0.5,timer_cb,c); // 0.5 s delay > > n_frames++; > > > > if(n_frames > 10) // this should stop the animation but it doesn't > > F

Re: [fltk.general] can't stop animation, it runs forever

2009-07-17 Thread imacarthur
On 17 Jul 2009, at 23:06, andrei_c wrote: > > But besides that, what I am doing to implement an animation isn't > that bad, right??Because I also saw another way of doing it on a > FLTK tutorial, it was that one whit the 3 JPEGs > animation.Unfortunately, that didn't help me, so the method a

Re: [fltk.general] can't stop animation, it runs forever

2009-07-17 Thread Albrecht Schlosser
andrei_c wrote: > Hello everyone, I was trying to make some simple program that involves > animation, and I came up whit the idea of making a program that draws a > rectangle at a different position each half a second.That seems pretty > simple.I managed to do that, but until I exit the aplicati

Re: [fltk.general] can't stop animation, it runs forever

2009-07-17 Thread andrei_c
@Ian: > You mean using add/repeat_timeout to drive the animation? Yes, that's > fine, a perfectly sensible way to proceed. > Maybe if you were animating a full physical model with 3-D rendering > and stuff you might want to do something more sophisticated, but for > basic animations and so forth it

Re: [fltk.general] How to attach scrollbar for Multiline_output

2009-07-17 Thread Albrecht Schlosser
Purnachandra wrote: >> Purnachandra wrote: >>> In my version Fl_Text_Display is not available. If I install new version >>> of FLTK all my old application might effected. Is there any other options? >> Try Fl_Browser then. ... > Looks like Fl_Browser is works for me. I will try this options.

Re: [fltk.general] can't stop animation, it runs forever

2009-07-17 Thread Greg Ercolano
andrei_c wrote: > Hello everyone, I was trying to make some simple program > that involves animation, and I came up whit the idea of > making a program that draws a rectangle at a different position > each half a second.That seems pretty simple.I managed to do that, > but until I exit the aplicatio

Re: [fltk.general] can't stop animation, it runs forever

2009-07-17 Thread Greg Ercolano
> on a platform specific basis, it's possible that on > one of the platforms, FLTK's remove_timeout() doesn't > actually stop pending timeouts, which is maybe why the > time keeps retriggering. I just tried your app on mac, windows and linux, and in all case

Re: [fltk.general] make failed

2009-07-17 Thread James Hearon
Hi, Thank You. The workaround seems to be for FLTK 2.0 code. I am not able to get make to work at all for FLTK 2.0. It endlessly loops on configure. Actually I think I needed an FLTK 1.X version anyway; so if there's there's any info on earlier versions of FLTK for the glibc problem I'd apprec

Re: [fltk.general] make failed

2009-07-17 Thread James Hearon
> On 07/16/2009 03:49 PM, James Hearon wrote: > > > I've tried several versions of FLTK but cannot seem to get thru make. Any > > suggestions? > > As time goes on, GCC get's more and more picky about naughty typecasting. I > think I filed an STR on this problem. If you look at the sources for t