AW: How to create a single line entry field?

Tiemo Hollmann TB toolbook at kestner.de
Fri Feb 16 13:24:10 EST 2007


Phil,thank you also,
Thank you for your welcome!
Tiemo

> -----Ursprüngliche Nachricht-----
> Von: use-revolution-bounces at lists.runrev.com [mailto:use-revolution-
> bounces at lists.runrev.com] Im Auftrag von Phil Davis
> Gesendet: Freitag, 16. Februar 2007 19:18
> An: How to use Revolution
> Betreff: Re: How to create a single line entry field?
> 
> Hi Tiemo,
> 
> There's a message sent to fields whenever you type RETURN or ENTER in the
> field:
> 
> on enterInField
>    -- trap message
> end enterInField
> 
> on returnInField
>    -- trap message
> end returnInField
> 
> 
> If you put these handlers in the script of your one-line field, the
> problem will
> go away.
> 
> Welcome to Rev!
> Phil Davis
> 
> 
> 
> Tiemo Hollmann TB wrote:
> > Hello,
> >
> > Probably a simple newbee question:
> >
> > 1. how can I realize a single line field, where the user can enter text
> and
> > commits with enter key?
> >
> > In my standard scenario the enter key makes a CR into the field, so that
> the
> > text breaks and disappears in the unvisible line 1 of 2 of my textfield
> > (because it has only 1 line visible)
> >
> >
> >
> > I have a handler:
> >
> > on rawkeyUp keyCode
> >
> > in the field, where I handle the key entries. But even if I try to
> capture
> > the keyCode 65293 ( EnterKey) and break the rawkeyUp, revolution puts
> the CR
> > into the field.
> >
> >
> >
> > Is there a field property "single line field" or something like that?
> >
> >
> >
> > 2. is there a chance to set the location of the ask and answer dialog,
> > instead of default centred?
> >
> >
> >
> > Thank you
> >
> > Tiemo
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > 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