Manoj wrote:
> I read data from file only once and store in any array.
>
> I already attach a program
> please check query number 13399 in this forum
Links please;
http://fltk.org/newsgroups.php?gfltk.general+v:22395
The rar file: too many files and too much extraneous stuff.
Menubars, tiles, images, event handlers, tooltips..
all unrelated to the problem you're describing.
I'm on linux and would have to 'port' your program,
manually create Makefiles for all the files, figure out
what's calling what.
By making a single file, it makes it easier for everyone to read
and test. Few people here want to unravel someone's project
and pick through all the files to figure it out.
Also, if you melt it down into a single file with
all the extras removed, you can often find the problem yourself.
BTW, tracing backwards from your draw() function, you appear
to want to be calling draw() from event handlers:
handle() -> Event_MouseDrag()-> passvalues() -> draw()
Don't do that; drawing in fltk should only be done when FLTK
calls draw(), or from other draw() handlers.. not from things
like event handlers or button/menu callbacks.
To have an event handler trigger a redraw, call redraw(),
not draw(), so that FLTK can control the ordering of drawing
the widgets. That's probably why you're getting the flicker.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk