Can a memo field auto scroll to the bottom?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Dick99999
Pro Scripter
Posts: 84
Joined: Thu Nov 27, 2008 10:25 am
Location: Netherlands

Can a memo field auto scroll to the bottom?

Post by Dick99999 » Fri Jul 16, 2010 2:43 pm

I use a memo field to log messages. Would like the order form old to new (at the bottom). When I refresh the memo with the latest log message, the scroll bars seem to stay at the top.
Is there any setting to make is auto scrolling when adding a new entry?
Using win XP - MacroSched v12

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Jul 16, 2010 3:43 pm

I was looking at this same issue last week. I opted to display the last line of my log file at the top of the memo field creating a reverse list.

Though I did not spend a great deal of time on it, the only method I found that kept the memo field scrolled to the bottom was to paste each line to the field rather than update the memo object's "text" property. Since you are using MS version 12 you could also toggle the memo objects "ReadOnly" property from True to False to True while you let the script paste each line of data. This would prevent users from altering the data between pastes.

Code: Select all

PutClipBoard>data
SetDialogObjectFocus>Dialog1,MSMemo1
SetDialogProperty>Dialog1,MSMemo1,ReadOnly,False
Press Ctrl
Send>v
Release CTRL
SetDialogProperty>Dialog1,MSMemo1,ReadOnly,True
There might be a better way.
Hope this makes sense.

Dick99999
Pro Scripter
Posts: 84
Joined: Thu Nov 27, 2008 10:25 am
Location: Netherlands

Post by Dick99999 » Mon Jul 19, 2010 4:10 am

Thanks, that certainly is a way to go. Would be nice though to have a scrolling option.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts