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
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution