|
|
On 11/21/20 5:19 PM duncan wrote:
See attached r2a.cxx with my solution (again, if that's what you wanted
to achieve). The groups are now colored (red and green). I'm aware that
the padding is not equal everywhere but I'm leaving this as an exercise
to the reader. ;-)
The attached files can be dropped into the test directory and compiled
with fltk-config, and are in the style of the existing resize examples.
The #include resize-arrows.cxx for ease of fltk-config build which would
need to be changed if they become official test/documentation examples.
Thanks for the code, I took a short look but I can't follow-up with much
more (no time to test right now).
After tweaking these blindly for a while, they should probably be changed
to remove the padding completely, because I can't quite get it to work as
expected. I think that you actually need some more groups within the
C group to handle the padding as invisible boxes...
Hmm, I'm not sure what "as expected" is in this case. However, WRT
padding I think you missed to make the C box the resizable() widget. I
added at line ~64 in resize-example5b.cxx:
m_groupR->end();
+ m_groupR->resizable(m_boxC);
int d = 20;
Is this maybe the missing piece?
PS: Greg's original question/issue resulted from the cube demo which
didn't resize as expected (issue #157). In that demo program vertical
resizing is required as well (as it was in my short demo code). I see
that your examples are resizing only horizontally and I don't know if
this was intended.
--
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/dd144588-826d-9009-5c17-a2dd22530250%40online.de.
[ Direct Link to Message ] | |
|
| |