I have an editbox with a not so big width and a normal height.
I do not want to allow the user to hit enter in the control to add a newline, but if the text on the first line goes beyond the width, it should then go to the next line to display the text correctly (I don't want a scrollbar).
The issue is that although there is only one line on the control, $did(dname,id) will only return what is visible on the first line only. It is possible to get the rest with $did(dname,id,N) however it is impossible to tell if a newline was added or not, and depending on where the line breaks, (on a space especially), it is not trivial to get the correct content of the editbox.

Shouldn't $did(dname,id) return the real first line in the control and $did().lines be 1 instead of 2?

Code:
dialog test {
size -1 -1 200 200
edit "",1,10 10 50 60, multi autovs
}
Open the dialog and enter text in the editbox so that it takes visually two lines to diplay the text and look at $did(dname,1)


#mircscripting @ irc.swiftirc.net == the best mIRC help channel