hi
is it possible to read the whole content of an multi line edit box?
example code:
menu channel {
-
testdialog: { .timerkhcd 1 0 cdialog }
}
alias cdialog { dialog -md testdia testdia }
dialog testdia {
size -1 -1 200 200
edit "" 1, 10 10 80 60, multi return autovs
button "ok" 2, 80 80 30 20
edit "" 3, 100 10 80 60, multi return autovs
}
on *:dialog:testdia:sclick:2: {
did -ra testdia 3 $did(testdia,1).text
set %testdiavar $did(testdia,1).text
}
when you enter multiple lines in the left edit box and afterwards hit "ok"...
the above code will only read the first line of the editbox ,copies the line to second box and loads the line into the variable.
But how do i get the 2nd,3rd... n.th line?
a "list" is not a good alternative in this case because the user has to enter text into this box, it's not a generated list
thanks in advance for any helping answer