Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scroll bars




On Jul 2, 2006, at 7:37 AM, Shawn Duross wrote:

When having a script place text in a text box with a scroll bar and
throughout execution keep adding more text, is there a way to make the
scroll bar scroll with the text automatically?


Shawn Duross


courtesy of Philip Buckley.....

set rowCount to get count of data rows of myLog -- where mylog is data source
tell myLogTable
set selected data row to data row rowCount of myLog -- we select the newly created row in the table
call method "scrollRowToVisible:" of object it with parameter (rowCount - 1) -- we scroll the window if necessary to show the selected row
end tell




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Scroll bars (From: Shawn Duross <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.