On 07/19/12 22:51, Jayaram wrote:
> With respect to performance am seeing this behavior (not quite sure how i can
> explain this behavior).
> So am using FLTK+Nano-X+Nxlib on an Arm target with a touch screen dislay.
> On the press of a button on the touch screen i populate some random text in a
> FL_Box. I pres the button and take my hands away from the screen there is a
> delay for the information box to appear and the text to be displayed. But
> after pressing the button, if i keep it pressed on the touch screen, the box
> appears a lot quicker and text is displayed.
> Am unable to understand the reason for this behavior !!
Kinda sounds like a redraw issue where movement of the
mouse during the press is helping the redraw occur.
When your code sets the random text, try also calling redraw()
on the window immediately after, eg:
if ( button_pushed ) {
box->label("some random text"); // set box's text
box->window()->redraw(); // tell box's parent window to redraw
}
..and see if that helps.
If not, post your code, or if it's longer than a few pages,
make a simple /compilable/ example that demonstrates the problem
so we can see.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk