preserving scrolling position

Viktoras Didziulis viktoras at ekoinf.net
Wed Aug 23 13:04:19 EDT 2006


Thank you! 
 
I thought there might be a combination of properties that do the trick,
because this happens only with table field. List fields for example keep
their scrolling position unchanged, when giving focus to other text field
(RevStudio 2.6.1). 
 
Viktoras 
 
-------Original Message------- 
 
From: Ton Kuypers 
Date: 08/23/06 17:35:21 
To: How to use Revolution 
Subject: Re: preserving scrolling position 
 
Hi Viktoras, 
 
Very easy, should work... 
 
Enter the following scripts in the field you want to edit 
 
global gHilited, gScrolled 
on openField 
put the hilitedlines of fld "myTable" into gHilited 
put the scroll of fld "myTable" into gScrolled 
end openField 
 
on closeField 
set the hilitedlines of fld "myTable" to gHilited 
set the scroll of fld "myTable" to gScrolled 
end closeField 
 
This should do the trick... 
 
Warm regards, 
 
Ton Kuypers 
Digital Media Partners bvba 
Tel. +32 (0)477 / 739 530 
Fax +32 (0)14 / 71 03 04 
http://www.dmp-int.com 
 
 
 
On 23-aug-06, at 14:50, Viktoras Didziulis wrote: 
 
> Hi, 
> 
> I have 2 fields on my stack - one is table, another - text field. 
> When I 
> scroll down the table and then give focus for writing things to 
> that another 
> field, table scrolling position is being reset so all the records I 
> need to 
> see go out of sight. As far as I understand it is default behavior 
> of fields 
> Is it possible somehow to lock the current position of the table, 
> when 
> changing the focus to another field? 
> 
> All the best 
> Viktoras 
> _______________________________________________ 
> use-revolution mailing list 
> use-revolution at lists.runrev.com 
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences: 
> http://lists.runrev.com/mailman/listinfo/use-revolution 
> 
 
_______________________________________________ 
use-revolution mailing list 
use-revolution at lists.runrev.com 
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences: 
http://lists.runrev.com/mailman/listinfo/use-revolution



More information about the use-livecode mailing list