[Migrated content. Thread originally posted on 31 January 2005]
I am using a multiline entry field like an optput window, as in AcuBench, displaying messages line by line as certain tasks are being performed. I want the user to see the last message added to the multiline entry field while the next task is being performedHow do I tell the control to scroll down to the last line as the message field is added?
some code:
Working Storage Section.
03 wMsg PIC (6000).
03 msg-ptr PIC 9(4).
Screen Section.
....
03 msg-obj entry-field VSCROLL-BAR value wMsg.
....
move "new message to user" to add-msg
perform add-to-msg
move "another message to user" to add-msg
perform add-to-msg
....
add-to-msg.
inspect add-msg replacing trailing spaces by low-values
string add-msg delimited by low-values H"0D" H"0A" delimited by size into wMsg with pointer msg-ptr
modify msg-obj values wMsg
modify msg-obj cursor 6000
Help is much appreciated.