Title: Treeview Post by: Jean G. on July 18, 2016, 02:26:31 pm We have a tree view that we append a note section into the tree, but it only displays the first line of note. We found that the user was pressing enter to start a new line which puts a "\" into the note. We changed the note input screen so it doesn't allow returns, but still not getting the whole note in the treeview, so we increased the size of the variable and it displays, but doesn't wrap to see the note in the screen you have to use the scroll bar because it is all one line.
Is there a way to make a note to wrap in a treeview? Thanks, Jean Title: Re: Treeview Post by: Reuben B. on July 22, 2016, 08:13:14 am Try making each row the array have a height of 2 (or 3 or 4 or whatever).
If your note field isn't the first field, that is its a TEXTEDIT already, set HEIGHT=2 (or 3 or 4 or whatever) and if necessary add SCROLLBARS attribute Otherwise if your note field is the tree widget column, add a dummy column to the 4gl array, and in your form add a field corresponding to this dummy widget that has a height of 2 (or 3 or 4 or whatever) e.g. Code
The height of each row is the same for all rows, you can't have rows shrinking/expanding to fit content. This is because of the protocol that sends only the data corresponding to the visible rows to the front-end. If individual row height varies, this calculation becomes more complex. Personally I'd also investigate putting a TEXTEDIT field to the right of the tree e.g. Code
and add a BEFORE ROW that populates this textedit field with the note field for the current row. Reuben |