imbault Well-Known Member Licensed User Longtime User May 11, 2015 #1 Sorry @Erel to come back on TextView, but like there is no event except click and longclick, I've add a TextView in a TableView, I just want to know if this TextView has been modified in order to save changes, I don't see how to do that, before the user strickes page back Thanks
Sorry @Erel to come back on TextView, but like there is no event except click and longclick, I've add a TextView in a TableView, I just want to know if this TextView has been modified in order to save changes, I don't see how to do that, before the user strickes page back Thanks
narek adonts Well-Known Member Licensed User Longtime User May 11, 2015 #2 Why you are not using TextField? Upvote 0
imbault Well-Known Member Licensed User Longtime User May 12, 2015 #3 Cause I need a multi lines control...., any suggestion? Upvote 0
A Albi Active Member Licensed User Longtime User May 12, 2015 #4 save it every time user goes back? Upvote 0
narek adonts Well-Known Member Licensed User Longtime User May 12, 2015 #5 The most costume way is to use inline OBJC and use UITextView delegates to catch every event. Upvote 0
imbault Well-Known Member Licensed User Longtime User May 12, 2015 #6 Albi said: save it every time user goes back? Click to expand... we don't have this event Upvote 0
imbault Well-Known Member Licensed User Longtime User May 12, 2015 #7 narek adonts said: The most costume way is to use inline OBJC and use UITextView delegates to catch every event. Click to expand... I would be delighted to receive such code Upvote 0
narek adonts said: The most costume way is to use inline OBJC and use UITextView delegates to catch every event. Click to expand... I would be delighted to receive such code
B Brian Robinson Active Member Licensed User Longtime User May 12, 2015 #8 What about the Page_Disappear event. Can you save whatever is in the TextView then? Upvote 0
imbault Well-Known Member Licensed User Longtime User May 12, 2015 #9 Brian Robinson said: What about the Page_Disappear event. Can you save whatever is in the TextView then? Click to expand... Right, that's what I've done, but in order to validate stuff in the tableview, I'm obliged to go back from main page... Upvote 0
Brian Robinson said: What about the Page_Disappear event. Can you save whatever is in the TextView then? Click to expand... Right, that's what I've done, but in order to validate stuff in the tableview, I'm obliged to go back from main page...
B Brian Robinson Active Member Licensed User Longtime User May 12, 2015 #10 Ok. Maybe as Erel said in another thread. Don't show the Back button and add your own button to handle the going back. At least then you could do the validation? Upvote 0
Ok. Maybe as Erel said in another thread. Don't show the Back button and add your own button to handle the going back. At least then you could do the validation?
imbault Well-Known Member Licensed User Longtime User May 12, 2015 #11 Both alternatives are do able, but they are not satisfying, I definitely think we need events other than click and longclick for TextView, is obvious... Upvote 0
Both alternatives are do able, but they are not satisfying, I definitely think we need events other than click and longclick for TextView, is obvious...
Erel B4X founder Staff member Licensed User Longtime User May 13, 2015 #12 You need to provide a way for the user to commit the text when you use TextView. It can be a "done" button or it can be an accessory view: https://www.b4x.com/android/forum/threads/input-accessory-views.51000/#post-318960 Upvote 0
You need to provide a way for the user to commit the text when you use TextView. It can be a "done" button or it can be an accessory view: https://www.b4x.com/android/forum/threads/input-accessory-views.51000/#post-318960