Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:18 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: scroll bars
PostPosted: December 18th, 2010, 6:31 pm 
Offline

Joined: April 13th, 2010, 10:38 am
Posts: 15
Hi

I have a text box, with a verticle scroll bar, which is populated automatically. Is it possible to force the scroll bar to show the last line in the text box? I have tried using "textbox.SetScrollPosition(n,-1)", but it does not seem to have any effect. I would be grateful for any help.


Top
 Profile  
 
 Post subject: Re: scroll bars
PostPosted: December 18th, 2010, 9:42 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Hi Bizzy,

Quote:
I have tried using textbox.SetScrollPosition(n,-1)

1) make sure you have the correct object name: textbox, Textbox, Text_04 etc. (also make sure that name is unique on the Page, and that there is no variable using the same name).
2) check to make sure you defined a value for n. For testing purposes, set it to 60 (a value of 0 will scroll nowhere)
3) if you have some action to automatically populate the text object, try putting in a wait(0) after that and before you try to scroll.

Please create a Profile for yourself on the forum, so that it shows what version of Opus etc. you are using, and provides some good system info (look at others for examples).

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group