|
| AW5.2: Text Entry and backspace key |
 |
Fri, 18 Apr 2008 12:20:43 -040 |
Hellow folks,
I looked around in ShowMe files for help but couldn't find what i really
need. I don't know how to do this:
a field that has a text already (for example "bobby123"), and I want
the
user to use the backspace key to delete the entry and replace it with
"bobby789".
how can i program that? a sample code will be appreciated.
thanks in advance,
Omar
|
| Post Reply
|
| Re: AW5.2: Text Entry and backspace key |
 |
Fri, 18 Apr 2008 14:22:19 -040 |
Look at the PresetEntry function. You can use that to pre-fill a
text-entry field. Doing that also pre-selects (highlights) the text, so
if the user starts typing, all the text is replaced.
To put the cursor at the end of that text, look at the PressKey
function. Note that when text is highlighted in any given text field and
you press the left arrow key, the text is unhighlighted and the cursor
jumps to the end... (hint hint, nudge nudge)
Erik
forums.macromedia.com wrote:
> a field that has a text already (for example "bobby123"), and I
want the
> user to use the backspace key to delete the entry and replace it with
> "bobby789".
--
Erik Lord
http://www.capemedia.net
Adobe Community Expert - eLearning
http://www.adobe.com/communities/experts/
------------------------------------------------------------------------
|
| Post Reply
|
| Re: AW5.2: Text Entry and backspace key |
 |
Fri, 18 Apr 2008 15:06:36 -040 |
Thanks Eric. Is there a way to get rid of the black highlights on the text?
"Erik L. **Community Expert**" <erik@pasdespam.capemedia.net>
wrote in
message news:fuaos5$iju$1@forums.macromedia.com...
> Look at the PresetEntry function. You can use that to pre-fill a
> text-entry field. Doing that also pre-selects (highlights) the text, so if
> the user starts typing, all the text is replaced.
> To put the cursor at the end of that text, look at the PressKey function.
> Note that when text is highlighted in any given text field and you press
> the left arrow key, the text is unhighlighted and the cursor jumps to the
> end... (hint hint, nudge nudge)
> Erik
>
> forums.macromedia.com wrote:
>
>> a field that has a text already (for example "bobby123"), and
I want the
>> user to use the backspace key to delete the entry and replace it with
>> "bobby789".
> --
> Erik Lord
> http://www.capemedia.net
> Adobe Community Expert - eLearning
> http://www.adobe.com/communities/experts/
> ------------------------------------------------------------------------
> http://www.awaretips.net - Authorware Tips!
|
| Post Reply
|
| Re: AW5.2: Text Entry and backspace key |
 |
Fri, 18 Apr 2008 18:06:22 -050 |
I think what Erik meant is that if you use the PressKey function to press
the _right_ arrow key the cursor will jump to the end of the field. If you
use the leftarrow key, it will jump to the beginning of the field.
HTH;
Amy
"forums.macromedia.com" <lion_eyes1@hotmail.com> wrote in
message
news:fuarft$l8o$1@forums.macromedia.com...
> Thanks Eric. Is there a way to get rid of the black highlights on the
> text?
>
>
> "Erik L. **Community Expert**"
<erik@pasdespam.capemedia.net> wrote in
> message news:fuaos5$iju$1@forums.macromedia.com...
>> Look at the PresetEntry function. You can use that to pre-fill a
>> text-entry field. Doing that also pre-selects (highlights) the text, so
>> if the user starts typing, all the text is replaced.
>> To put the cursor at the end of that text, look at the PressKey
function.
>> Note that when text is highlighted in any given text field and you
press
>> the left arrow key, the text is unhighlighted and the cursor jumps to
the
>> end... (hint hint, nudge nudge)
>> Erik
>>
>> forums.macromedia.com wrote:
>>
>>> a field that has a text already (for example "bobby123"),
and I want the
>>> user to use the backspace key to delete the entry and replace it
with
>>> "bobby789".
>> --
>> Erik Lord
>> http://www.capemedia.net
>> Adobe Community Expert - eLearning
>> http://www.adobe.com/communities/experts/
>>
------------------------------------------------------------------------
>> http://www.awaretips.net - Authorware Tips!
>
>
|
| Post Reply
|
| Re: AW5.2: Text Entry and backspace key |
 |
Sat, 19 Apr 2008 22:36:27 -040 |
Thanks Amy. I was looking at my keyboard upside down... ;-)
Omar, either method will get rid of the black highlight.
EriK
Amy Blankenship wrote:
> I think what Erik meant is that if you use the PressKey function to press
> the _right_ arrow key the cursor will jump to the end of the field. If you
> use the leftarrow key, it will jump to the beginning of the field.
--
Erik Lord
http://www.capemedia.net
Adobe Community Expert - eLearning
http://www.adobe.com/communities/experts/
------------------------------------------------------------------------
|
| Post Reply
|
|
|
|
|
|
|
|
|
|