f0raster0 Well-Known Member Licensed User Longtime User Mar 9, 2025 #1 Hi Team, I'm trying to disable the user's ability to enter text in the B4XFloatTextField1 I've tried various options like setting Enabled or Visible to False, added panel over B4XFloatTextField1, but the keyboard still appears when the user taps on the B4XFloatTextField1 How can I prevent this? B4X: Private Sub rdBtn2_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = False B4XFloatTextField1.TextField.Visible = False B4XFloatTextField1.mBase.Visible = False End Sub thanks in advance
Hi Team, I'm trying to disable the user's ability to enter text in the B4XFloatTextField1 I've tried various options like setting Enabled or Visible to False, added panel over B4XFloatTextField1, but the keyboard still appears when the user taps on the B4XFloatTextField1 How can I prevent this? B4X: Private Sub rdBtn2_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = False B4XFloatTextField1.TextField.Visible = False B4XFloatTextField1.mBase.Visible = False End Sub thanks in advance
Solution f0raster0 Mar 9, 2025 thanks guys solved: B4X: Private Sub rdBtn1_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = True End Sub Private Sub rdBtn2_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = False End Sub
thanks guys solved: B4X: Private Sub rdBtn1_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = True End Sub Private Sub rdBtn2_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = False End Sub
Mariano Ismael Castro Active Member Licensed User Longtime User Mar 9, 2025 #2 Try this B4X: B4XFloatTextField1.mBase.Enabled = False Upvote 0
f0raster0 Well-Known Member Licensed User Longtime User Mar 9, 2025 #3 Mariano Ismael Castro said: Try this B4X: B4XFloatTextField1.mBase.Enabled = False Click to expand... no joy Upvote 0
Mariano Ismael Castro said: Try this B4X: B4XFloatTextField1.mBase.Enabled = False Click to expand... no joy
LucaMs Expert Licensed User Longtime User Mar 9, 2025 #4 B4X: B4XFloatTextField1.TextField.Enabled = Not(B4XFloatTextField1.TextField.Enabled) B4XFloatTextField1.lblClear.Enabled = Not(B4XFloatTextField1.lblClear.Enabled) B4XFloatTextField1.lblV.Enabled = Not(B4XFloatTextField1.lblV.Enabled) Note that this works in B4J: Mariano Ismael Castro said: Try this B4X: B4XFloatTextField1.mBase.Enabled = False Click to expand... [A "Wish" for Erel: add the Enabled property] Upvote 1
B4X: B4XFloatTextField1.TextField.Enabled = Not(B4XFloatTextField1.TextField.Enabled) B4XFloatTextField1.lblClear.Enabled = Not(B4XFloatTextField1.lblClear.Enabled) B4XFloatTextField1.lblV.Enabled = Not(B4XFloatTextField1.lblV.Enabled) Note that this works in B4J: Mariano Ismael Castro said: Try this B4X: B4XFloatTextField1.mBase.Enabled = False Click to expand... [A "Wish" for Erel: add the Enabled property]
f0raster0 Well-Known Member Licensed User Longtime User Mar 9, 2025 #5 thanks guys solved: B4X: Private Sub rdBtn1_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = True End Sub Private Sub rdBtn2_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = False End Sub Upvote 0 Solution
thanks guys solved: B4X: Private Sub rdBtn1_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = True End Sub Private Sub rdBtn2_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = False End Sub
LucaMs Expert Licensed User Longtime User Mar 9, 2025 #6 f0raster0 said: thanks guys solved: B4X: Private Sub rdBtn1_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = True End Sub Private Sub rdBtn2_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = False End Sub Click to expand... Of course, with your code X and ✔ will still be enabled. Upvote 0
f0raster0 said: thanks guys solved: B4X: Private Sub rdBtn1_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = True End Sub Private Sub rdBtn2_CheckedChange(Checked As Boolean) B4XFloatTextField1.TextField.Enabled = False End Sub Click to expand... Of course, with your code X and ✔ will still be enabled.
f0raster0 Well-Known Member Licensed User Longtime User Mar 9, 2025 #7 LucaMs said: Of course, with your code X and ✔ will still be enabled. View attachment 162350 Click to expand... Thanks, Luca. I don't see that; for some reason, it's working as expected EDIT: And since it's working, I don't plan on touching it! Attachments B4XFloatTextField.zip B4XFloatTextField.zip 10.7 KB · Views: 264 Last edited: Mar 9, 2025 Upvote 0
LucaMs said: Of course, with your code X and ✔ will still be enabled. View attachment 162350 Click to expand... Thanks, Luca. I don't see that; for some reason, it's working as expected EDIT: And since it's working, I don't plan on touching it!
LucaMs Expert Licensed User Longtime User Mar 9, 2025 #8 f0raster0 said: I don't see that; for some reason, it's working as expected Click to expand... It only works partially. That way you disable EditText, but the user can still tap on X and V, empty EditText / confirm input. Upvote 0
f0raster0 said: I don't see that; for some reason, it's working as expected Click to expand... It only works partially. That way you disable EditText, but the user can still tap on X and V, empty EditText / confirm input.
f0raster0 Well-Known Member Licensed User Longtime User Mar 9, 2025 #9 LucaMs said: It only works partially. That way you disable EditText, but the user can still tap on X and V, empty EditText / confirm input. Click to expand... Haha, you're making me worry , but I don't see that. Maybe it will show up on a different phone; if that happens, I'll fix it when it does. (I added your code just in case - thanks) Upvote 0
LucaMs said: It only works partially. That way you disable EditText, but the user can still tap on X and V, empty EditText / confirm input. Click to expand... Haha, you're making me worry , but I don't see that. Maybe it will show up on a different phone; if that happens, I'll fix it when it does. (I added your code just in case - thanks)
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2025 #10 Enabled property added in XUI Views v2.65: https://www.b4x.com/android/forum/threads/b4x-xui-views-cross-platform-views-and-dialogs.100836 Upvote 0
Enabled property added in XUI Views v2.65: https://www.b4x.com/android/forum/threads/b4x-xui-views-cross-platform-views-and-dialogs.100836
f0raster0 Well-Known Member Licensed User Longtime User Mar 9, 2025 #11 Erel said: Enabled property added in XUI Views v2.65: https://www.b4x.com/android/forum/threads/b4x-xui-views-cross-platform-views-and-dialogs.100836 Click to expand... Erel, could you confirm that XUI Views v2.65 contains the correct files? I still see v2.60 without any changes... Please correct me if I'm wrong, thanks Upvote 0
Erel said: Enabled property added in XUI Views v2.65: https://www.b4x.com/android/forum/threads/b4x-xui-views-cross-platform-views-and-dialogs.100836 Click to expand... Erel, could you confirm that XUI Views v2.65 contains the correct files? I still see v2.60 without any changes... Please correct me if I'm wrong, thanks
Erel B4X founder Staff member Licensed User Longtime User Mar 10, 2025 #12 Seems like I tried to make too many updates yesterday... I've now uploaded the correct version. (Note that you can see the library version by unzipping the b4xlib and checking manifest.txt) Upvote 0
Seems like I tried to make too many updates yesterday... I've now uploaded the correct version. (Note that you can see the library version by unzipping the b4xlib and checking manifest.txt)