4
4gl Developer
Guest
I have a collection of long comments fields that I would like to display in consecutive editor widgets, with controlled space between them, and no need for scrollbars. In other words, I need to be able to predict in advance how many lines my dynamic editor widget will require, so that when I create it, there are no extra lines, and no need for a vertical scrollbar. I want to remove the box from each editor, so that it would "read like a book" with normal spacing.
I have tried counting characters and finding ends of words, checking for inserted C/R's, etc. and I can only get kind of close.
Part of the problem I assume is the variable sized font, which means I might have to get into the GET-TEXT-WIDTH methods, but I don't want to overthink this. Anybody ever tried this?
Continue reading...
I have tried counting characters and finding ends of words, checking for inserted C/R's, etc. and I can only get kind of close.
Part of the problem I assume is the variable sized font, which means I might have to get into the GET-TEXT-WIDTH methods, but I don't want to overthink this. Anybody ever tried this?
Continue reading...