How can I show a cursor to readOnly textbox?
This is important as I am making a custom keyboard
How can I show a cursor to readOnly textbox?
This is important as I am making a custom keyboard
You can't. You have to remove the read only checkbox/property. Then this makes the android keyboard show up. You can hide this with the Hide keyboard block.
It is possible to use a label instead of a textbox, and set a "cursor" in the text, but the blocks are complex and the user experience is not great.
But then I need a textbox click event. It comes also when clicking the textbox. Just now I tested with companion. How can I have a click event? Can you please also help me with that. So I can add that hide keyboard block...
Have a button, disguised as a TextBox - on click, hide the button, show the TextBox (Or Label).
With this extension you can add click event on textbox
Use a clock timer to hide the keyboard while the textbox is in edit mode/has focus. It will flash on the the screen. Remember to turn off the clock when focus is lost/editing finished.
No, because you do not start the clock
You would also need another textbox to take the focus in order to stop the clock.
I've got one question - when will you fire the Clock1. Timer event?
EDIT: I see you fixed it now.
@TIMAI2 I fixed the blocks!
But one question. Why does the textbox appear for 1 second and then go away? Maybe it's because of the companion, right?
@gordonlu310 The timer is fired when the TextBox is in edit mode!
Following on from @ChrisWard 's suggestion about using a button, here is a small example
buttonastext.aia (2.7 KB)
There is no blocks keyboard to edit the text but you should see how it works. Another button is needed to close the textbox.
Couldn't Button2 actually be a 'when TextBox lost focus' Block?
Actually, it's not a solution - every time you edit the text, the keyboard still 'flashes up', 'call TextBox HideKeyboard' needs to behave differently - Hide until enabled (by code instead of event).
You would need an extension for that.
Can you please suggest me an extension then?