Hi Snorri
Here is our test
while true
input g_message from s_message attributes(without defaults, unbuffered)
on action send
let g_chat = g_message , " - ", g_message
display g_chat to s_chat
exit input
end input
input g_chat from s_chat attributes(without defaults, unbuffered)
before field s_chat
call fgl_dialog_setcursor(g_chat.getLength() -1)
exit input
end input
end while
So, it's supposed to work like this: user inputs the message and click "send", after sending the program append the message to the chat and exit the message input, so i can make a input in the chat window do be able to call the fgl_dialog_setcursor, exit input and go back to the message input in the while loop.
If i remove the "exit input" from the input g_chat block, it's all nice, the cursor goes to the end and the text edit scrolls! The problem is after the exit input, when i exit the input the scroll go back to the top :(