> I'm reading some tree-like data from a text file and
> displaying it in an Fl_Browser.  The data looks something like this:
> 
> Level 0
>     Level 1
>     Level 1
>         Level 2
>     Level 1
> Level 0
> 
> The indentation is done with tab characters.
> I've not set the Fl_Browser's column_char() or column_widths().
> 
> Now, this all seems to work.  However, the docs say that the
> default column_char is tab, but don't mention what the default
> column_widths is.  Indeed, it's not clear to me what's supposed
> to happen if column_char's appear in the text and column_widths
> has not been set (but maybe that's because I can't read properly :) ).

I have not done this in a while, but IIRC, so long as you do not set the
column_widths array, then the column_char is ignored and you are
(probably) OK.

Um, yup, here's a quote that looks relevant;

"After the last column any remaining text is formatted into the space
between the last column and the right edge of the browser, even if the
text contains instances of column_char() . The default value is a
one-element array of just a zero, which means there are no columns."

I read that as saying that, so long as you don't set the column_widths
array, you can use the column_char in your text and it will be ignored.
Maybe...

> Anyhow, I'm wondering if this is something that's going to come
> back and bite me in the rear end someday.  I'm using fltk 1.1.8
> on XP with Cygwin.

Could switch to fltk-1.3 and use an Fl_Tree widget instead...



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