one possibility would be to use textArea instead of text, which allow you to use tbreak for every new line.
you would need to use DOM SET XML ELEMENT VALUE for line #1 and DOM Append XML child node for all other lines. you can still use an in-memory text element+PICTURE PROPERTIES to calculate the descent size for the last line. you would add that to the height obtained from an in-memory textArea+PICTURE PROPERTIES. since lines above it will include the decent as line spacing. that's what I did for the label editor demo. https://github.com/miyako/4d-component-label-editor methods: Editor_TEXT_COMPUTE_SIZE Editor_TEXT_EDIT_SET_VALUE ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************