automatic scrolling a field to the bottom when Text is entered

Chipp Walters chipp at chipp.com
Tue Jan 21 11:19:00 EST 2003


Björnke,

Couple of things,

1) I typically use

select after last char in fld

to move the cursor to the end

2) Why not just edit the libUrlSetLogField handler to do what you want?
Seems a pretty easy hack.

-Chipp

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Björnke von
> Gierke
> Sent: Tuesday, January 21, 2003 7:17 AM
> To: use-revolution at lists.runrev.com
> Subject: Re: automatic scrolling a field to the bottom when Text is
> entered
>
>
> Thanks to every one who replied, but it seems that i have to be more
> specific about what I want to do:
> I have a field which captures all libURL messages, using the
> "libUrlSetLogField <field> " command. The problem is that I wont now
> when it gets a message, nor can I make it put the data before the
> field. It will also be probable that the User writes into that field,
> or that I willl ent3er something per script. The two last cases can be
> handled but the first one buggs me :(
>
> what I got (and think that it is too complicated):
>
> on updateField
>    if the selected of checkmark "Cancel" = true then exit updateField
> --or similar
>    set the scroll of me to 999999
>    send updateField to me in 0.3 seconds
> end updateField
>
>
> On Dienstag, Jan 21, 2003, at 09:14 Europe/Zurich, Geoff Canyon wrote:
>
> > Whenever you want it -- I'm not sure when you want to peg the field to
> > the bottom. If you're putting text in programmatically, then do the
> > scroll as part of that. If you're reacting to user input, then I would
> > think closeField and exitField are your ticket.
> >
> > On Monday, January 20, 2003, at 04:48 PM, Björnke von Gierke wrote:
> >
> >> nice, but on what event/message?
> >>
> >> On Dienstag, Jan 21, 2003, at 01:22 Europe/Zurich, Geoff Canyon wrote:
> >>
> >>> This works:
> >>>
> >>> set the scroll of fld "whatever" to 999999
> >>>
> >>
> >> _______________________________________________
> >> use-revolution mailing list
> >> use-revolution at lists.runrev.com
> >> http://lists.runrev.com/mailman/listinfo/use-revolution
> >>
> >>
> >
> > I hope this helps. Feel free to contact me if you have any further
> > questions.
> >
> > regards,
> >
> > Geoff Canyon
> > Revolution Support
> > --
> > Geoff Canyon <geoff at runrev.com> <http://www.runrev.com/>
> > Runtime Revolution Limited - The Solution for Software Development
> > Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.
> >
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > http://lists.runrev.com/mailman/listinfo/use-revolution
> >
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list