Dear all,
I need (in a perfect scenario) to have a multiline text box to write, copy, paste and so on (therefore, several independent lines do not help), in which I can control the number of character written in each line, breaking to the next when the limit is reached. The text on this text box will later be copied into several records, with a maximum of x amount of characters per line.
I have tried to control this with an multiline edit, where the text wraps automatically by setting horizontal scrolling to "no", which works fine if I ignore the fact that it wraps when the horizontal limit of the box is reached and not when the maximum allowed characters are reached (later I manually control the text break into lines of x character). I can resize the text box, but this will be static, every time a different size is needed, panel editing will be needed. Would be much better to have a parameter configuring the size and when opening the panel, the text box be resized to the configured width. Is it possible to set the width of a field at runtime? If yes, is it possible to do so in centimeters? Can't find anything in help...
If not possible to set the size, is it possible to know the line where text is being typed on the multiline edit field? It is possible getting the current text, comparing to the old one, finding a different char and calculating the line, but this would probably take far to long processing and would not allow a fast typing with no pauses. Is there a fast way?
If anyone has any idea or some advice on how to achieve the "perfect scenario", please advise. If not possible would be good to know as well. :)
Thank you.
Best regards,
Nuno Dias