> > Can anyone tell me (for fltk 1.1.4) what the limitations are for a
> > file loaded into an Fl_Multi_Browser?
> 
> FLTK-1.1.4? That's really ancient. The last stable release was 1.1.10.
> fltk.announce shows that 1.1.5 was released in 2004, so 1.1.4 
> must have
> been 2003 or earlier.
> 
> However, I have no idea whether 1.1.10 will solve your problem.

I'd have to guess not though - as Matt said elsewhere, there's a good
chance this is 16-bit rendering context limitation.

(For the OP's benefit; fltk-1.0 and fltk-1.1 series releases used a
16-bit rendering context, signed +/- 32767 pixels, as this mapped
directly to the rendering co-ordinates used in X11 and win32.)

Now, consider if the rendering context is clipped at +32767 pixels, and
we write 2069 lines of text into it, then each line could be up to 15.8
pixels separation vertical.

So a small change in font, from a prop font to a fixed font, might
easily bump up the vertical height of the text, and the line
separation... A 1-pixel increase in effective on-screen height would be
enough to cut your number of lines from 2069 lines down to 1947 lines...

Might be worth using fl_height to query the selected fonts, find out
what height they actually are on your machines, see if that fits with
the observed behaviour. If so, selecting a smaller font might delay the
onset of the problem - though clearly it is not a fix.

Fltk-1.3 uses a 32-bit co-ordinate frame, though if we are still clipped
by the underlying OS context (and we may be) then there will still be a
problem.
In which case, loading the text into an Fl_Text_* widget might be an
option (it handles larger text files) or make a subclass of
Fl_Multi_Browser that only holds a "visible" subset of the full file,
and reload it dynamically as the user scrolls - possible but a bit of a
hassle to do...




SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to