preserving scrolling position
Ton Kuypers
tkuypers at dmp-int.com
Wed Aug 23 10:35:12 EDT 2006
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
>
More information about the use-livecode
mailing list