Michael Surette wrote:

> On 12/30/2009 06:39 PM, Greg Ercolano wrote:
>> Michael Surette wrote:
>>> I have written a dialog which is essentially an Fl_Scroll filled with
>>> Fl_Box widgets.
>>>
>>> Under Windows with minGW it runs well, but under Linux it dosen't
>>> display properly with anything over approximately 1300 entries.  Large
>>> groups of boxes don't display at all, although the proper label gets
>>> printed out when a spot is clicked.
>>>
>>> Is this a bug or have I overlooked something?
>>>
>>> I'm using fltk 1.3.x-r6950.
>>
>>     Can't test the code here; no boost.
>>
>>     Usually the problem is integer x/y positions above/below 32767,
>>     though I thought we now have longs in fltk 1.3.x.
>>
>>     Possibly a limit of x window coords then? (I can't remember offhand)
> 
> Here it is again less the boost requirement.
> 
> Since each item is 25 pixels high, 32767 pixels would be just over 1310 
> items.  But as you say, this doesn't make sense where int is 32 bits. 
> The fact that it works well under Windows makes even less sense.  I 
> would expect most of the code to be common.
> 
> As you say, perhaps an X problem.  Does fltk actually render the 
> scrolled panel somewhere as an X window?  Would this be considered an 
> fltk bug, or just a limitation?

AFAICT this *should* work with FLTK 1.3. That was one reason why the
coordinate space has been extended. Although the recommendations to
do it with an own mechanism to display only the visible set of the
widgets would also be correct, maybe for performance reasons.

FLTK does not render the whole scrolled panel anywhere, it does only
render the visible widgets. However, when scrolling, there's a kind
of optimization that is AFAIK the only part that has platform
dependent code. This is fl_scroll() in src/fl_scroll_area.cxx.

Please file a bug report at

http://www.fltk.org/str.php

and attach your test code so that we can check this.

Thanks

Albrecht

P.S. Happy new year to all !
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to