Re: [fltk.bugs] [HIGH] STR #2832: Fl_Tree does not draw child widget labels anymore

2012-04-30 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?L2832
Version: 1.3-current


Attached file "tree-and-inputs-with-labels.cxx"...


Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current#include 
#include 
#include 
#include 
#include 
int main(int argc, char *argv[]) {
  Fl_Double_Window *win = new Fl_Double_Window(450, 400, "Tree As FLTK Widget 
Container");
  win->begin();
  {
Fl_Tree *tree = new Fl_Tree(10, 10, win->w()-20, win->h()-20);
tree->root()->label("Test Nodes");
// Add some regular text nodes
tree->add("Foo/Bar/001");
tree->add("Foo/Bar/002");
tree->add("Foo/Bla/Aaa");
tree->add("Foo/Bla/Bbb");
// Add items to the 'Data' node
for ( int t=0; t<1000; t++ ) {
// Add item to tree
static char s[80];
sprintf(s, "FLTK Widgets/%d", t);
Fl_Tree_Item *item = tree->add(s);
tree->begin();
{
sprintf(s, "Test %04d", t);
Fl_Input *in = new Fl_Input(0,0,140,25);
in->align(FL_ALIGN_RIGHT);
in->copy_label(s);
item->widget(in);
}
tree->end();
}
  }
  win->end();
  win->resizable(win);
  win->show(argc, argv);
  return(Fl::run());
}
___
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs


Re: [fltk.bugs] [HIGH] STR #2832: Fl_Tree does not draw child widget labels anymore

2012-04-30 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?L2832
Version: 1.3-current


Attached code to demonstrate this.

As a possible workaround, can I suggest making the child widget an
Fl_Group, and position the Fl_Input within that, having the label
reside within the xwyh of the group. The group can probably be FL_NO_BOX
to 'see through' to the item's bg color.

Meanwhile, I believe this can be supported; if it can, I'll
update svn.


Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current

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


Re: [fltk.bugs] [HIGH] STR #2832: Fl_Tree does not draw child widget labels anymore

2012-04-30 Thread Greg Ercolano

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

[STR Active]

Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9411)


Fixed in Subversion repository.

Try svn r9411; that should restore it.

Leaving this open until you can confirm.


Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9411)

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


Re: [fltk.bugs] [HIGH] STR #2832: Fl_Tree does not draw child widget labels anymore

2012-04-30 Thread Greg Ercolano

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

[STR Active]

Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9413)


Actually, would like to recommend svn r9413 instead,
which fixes a focus/redraw problem when specifically Fl_Input widgets
are used as immediate children.


Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9413)

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


Re: [fltk.bugs] [HIGH] STR #2832: Fl_Tree does not draw child widget labels anymore

2012-04-30 Thread Greg Ercolano

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

[STR Pending]

Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9413)


Hmm, make that r9414.

(Fixing that last damage problem reverted the label drawing issue,
so 9414 should support both)


Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9413)

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


Re: [fltk.bugs] [HIGH] STR #2832: Fl_Tree does not draw child widget labels anymore

2012-04-30 Thread geuz

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

[STR Pending]

Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9413)


Hi Greg - r9420 works great!

Maybe it would be interesting to add a widget with a label in the
test/tree.cxx demo, in order to test this feature regularly?


Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9413)

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


Re: [fltk.bugs] [HIGH] STR #2832: Fl_Tree does not draw child widget labels anymore

2012-05-01 Thread Greg Ercolano

[STR Closed w/Resolution]

Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9413)


Will do.

I'm working on a large commit now to do Fabien's request for
'lazy' color control, and among various tweaks to the test/tree
program for that, I'll include an Fl_Input widget with a right-aligned
label so that this continues to be supported.

Closing this STR; thanks for the report!


Link: http://www.fltk.org/str.php?L2832
Version: 1.3-current
Fix Version: 1.3-current (r9413)

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