Tree widget

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
2 posts • Page 1 of 1
Vakhnovwtskiy
Posts:5
Joined: Mon Feb 10, 2020 3:35 pm

Tree widget

Post by Vakhnovwtskiy »

Hello.

I have some problems.

I use Tree widget in my project and I would like to set rules wrap words.
I try to use attribute wordWrap in Gegi but it don't work. The attribute have modes: true or false.

Also, I opened help (Tree widget functions->wordWrap) and saw that the description is this function for TextEdit widget.

I use 3.16 P012

My code:

TREE1.addColumn("1");
TREE1.addColumn("2");
TREE1.addColumn("3");
TREE1.setColumnWidthMode(0, TREE_WIDTH_MANUAL);
TREE1.setColumnWidth(0, 100);


TREE1.appendItem("", "A", "First");
TREE1.setOpen("A", true);
TREE1.appendItem("", "B", "Second");
TREE1.setOpen("B", true);
TREE1.appendItem("A", "AA", "one two three four five.");
TREE1.appendItem("B", "BB", "one two three four five.");

gschijndel
Posts:376
Joined: Tue Jan 15, 2019 3:12 pm

Re: Tree widget

Post by gschijndel »

For the word wrap to work you must disable the 'textElideMode', but the row height remained the same. So you might need to report this officially as a bug.

2 posts • Page 1 of 1