See the App Inventor Extensions document about how to use an App Inventor Extension.
For questions about this extension or bug reports please start a new thread in the
App Inventor community. Thank you.
For feature requests please contact me by email.
To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.
Sep 27th, 2017: Version 1: initial version
Sep 28th, 2017: Version 2: parameter component added in AfterTextChanged event
Oct 9th, 2017: Version 3: SetBackgroundImage method added
Oct 21st, 2017: Version 4: GetHighlightColor and SetHighlightColor methods added
Oct 22nd, 2017: Version 5: SetSoftKeyboardIconEnter method and EnterPressed event added
Jul 30th, 2019: Version 6: StopTextChangedListener method added
Feb 22th, 2023: Version 6a: EnterPressed event adjusted for USB keyboards, requested by Pac-Man aka Martin, see also this thread.
Textbox Extension.
Required permission: none
Main sponsor of this extension is Italo. Thank you!
Return current position of cursor in textbox.
Highlight text.
Return length of textbox.
Set background image.
You can use a relative path or a complete path to the image file.
To use a relative path, just prefix the imageFileName with /.
For instance /myFile.jpg will set the file /mnt/sdcard/myFile.jpg.
If a fileName starts with file:/// you can specify a complete path to the file.
To use an image file from the assets, prefix the imageFileName with //..
Sponsor of this method is ghoostiadi. Thank you!
Get Highlight color of textbox.
Set Highlight color of textbox.
Set cursor at a specific position in textbox.
Set cursor at end position in textbox.
Start Text Changed listener.
Start Enter Pressed Listener for a textbox. Not available for multiline textboxes.
Thank you Bruger!
Sponsor of this method is Boban. Thank you!
Note: It has been reported, that this listener does not work together with USB keyboards.
Stop Text Changed listener.
Sponsor of this method is Ken. Thank you!
Set Icon for Enter button on soft keyboard for a textbox. Not available for multiline textboxes.
Thank you Bruger!
Possible values for icon: DONE, GO, NEXT, PREVIOUS, SEARCH, SEND.
Sponsor of this method is Boban. Thank you!
Event indicating that text of component has been changed.
Event indicating that enter in textbox has been pressed. Not available for multiline textboxes.
Thank you Bruger!
Sponsor of this event is Boban. Thank you!
>
Developing and maintaining snippets, tutorials and extensions for App Inventor takes a lot of time.
I hope it saved some of your time. If yes, then you might consider to donate a small amount!
or donate some mBTC to Address:
1Jd8kXLHu2Vkuhi15TWHiQm4uE9AGPYxi8
Thank you! Taifun
Download TaifunTextbox extension (aix file)
Download Textbox Test (aia file)
Download Textbox Background Image Test (aia file)
Download Textbox Highlight Color Test (aia file)
Download Textbox Enter Pressed Test (aia file)
Back to top of page ...
This work by Pura Vida Apps
is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License
with attribution (name=Pura Vida Apps and link to the source site) required.