|
|
On Am 7/14/22 20:16 schrieb Albrecht Schlosser wrote:
Unfortunately this widget uses FL_DOWN_BOX internally if you don't set
a box type or set it to FL_NO_BOX.
Instead of disabling the box(), try setting it to FL_FLAT_BOX.
Yep, that's probably the best way to work around this "special
feature". I don't know why this was done but it's this way since
Fl_Help_View was added to FLTK around 2001. Thus it can't be changed
but I documented this special behavior a few minutes ago.
Thinking about it again, I believe we could set the boxtype to
FL_DOWN_BOX in the constructor and then remove the "special feature" to
replace the box type internally. Most users wouldn't notice the change
if they didn't set the boxtype explicitly to FL_NO_BOX.
This change would have the benefit that users could set FL_NO_BOX if
they want to do so (for whatever reason, background image or anything
else) and if they make sure that the text wouldn't scroll, i.e. it would
fit in the widget.
Greg and others, what do you think? Should we change this?
Although I wrote before that it couldn't be changed I believe now that
his proposal would not do any harm but be more like expected.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/51326414-bba0-7858-8817-873dcee18c9a%40online.de.
[ Direct Link to Message ] | |
|
| |