Re: [fltk.development] RFC: Adding when() support in Fl_Tabs

2013-03-28 Thread Greg Ercolano
 So here's a big table comparing the when() behavior of radio and
 browser, comparing mouse clicks and keyboard nav clicks:
 http://seriss.com/people/erco/fltk/when-behavior-03-26-2013.html

Fixed that table up a bit to make it easier to read.
Hit Reload to see the changes.

During testing I noticed some inconsistencies with changed()'s value,
so started adding that to the table too.

___
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev


Re: [fltk.development] [RFE] STR #2941: RFE: fl_text_extents(): support multiple lines

2013-03-28 Thread Ian MacArthur

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2941
Version: 1.3-feature


This may be possible, but I didn't do it (thinking about it was making my
head hurt...)

I guess the idea is to use the typographical height of the folded
string, which will take into account the vertical leading between rows of
text and so forth; but tailor that to take account of the inked height
of the first and last rows... Or something...

In any case, I think we'd maybe want to make that a distinct function from
fl_text_extents() if we did that ?

I also wonder about (somehow) handling fltk @ symbol expansion and so
forth in the improved mechanism. If we go that way...


Link: http://www.fltk.org/str.php?L2941
Version: 1.3-feature

___
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev


Re: [fltk.development] [RFE] STR #2941: RFE: fl_text_extents(): support multiple lines

2013-03-28 Thread Greg Ercolano

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2941
Version: 1.3-feature


Based on fl_measure(), I'd say symbol support isn't hard.

The symbols simply scale to the current string height, whatever it is.

So if it's a single line, it's exactly fl_height().

If it's multiple lines, it scales to the fl_height() x #lines.

The new code I intend to replace fl_measure()'s with will probably
be good reference for that. Perhaps I should make it a function that
returns the (potentially two) symbol sizes.

The symbol size calculations in fl_measure() appear to assume
symbols are square, which makes computation easy.

Apparently symbol scaling (e.g. @+9- and @-9-) doesn't affect
fl_measure() calculations, so I guess it just over-draws or under-draws
when the user supplies that in a string.


Link: http://www.fltk.org/str.php?L2941
Version: 1.3-feature

___
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev


Re: [fltk.development] [RFE] STR #2941: RFE: fl_text_extents(): support multiple lines

2013-03-28 Thread Greg Ercolano

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2941
Version: 1.3-feature


 symbols simply scale to the current string height, whatever it is.

I should add fltk's @ symbols are not really like characters,
they're more like graphics that fill the left and right margins.

See this screenshot, esp. see the last example for the behavior
of @ symbols in a multiline string:
http://www.fltk.org/strfiles/2940/symbol-examples.png

I never knew it worked that way; want to add that to the docs,
which is what STR# 2940 covers.


Link: http://www.fltk.org/str.php?L2941
Version: 1.3-feature

___
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev