A AymanA Active Member Licensed User Oct 22, 2020 #1 Hi All, I am sure I am doing something wrong as I couldn't find any mention for my problem in the forum. I have a toolbar1 set to text with tag update. Code: Copy Sub B4XPage_MenuClick (Tag As String) If Tag = "update" Then log("test") End If End Sub Click to expand... The code above is supposed to work only when the tag update is returned - when I press on the toolbar text, but this is not the case. Since I have B4XFloatTextField, when I focus (enter to edit/input the field) the code above is triggered!! if I understand correctly it shall only trigger when I press on the toolbar text. I do not have any other fields that has "update" as a tag, as a matter of fact I have checked all the B4XFloatTextField none had tags, so I have specified different tags so It only returns when I press on the toolbar but to no avail! not sure how it see the tag as update when I press on B4XFloatTextField. Any idea of what I am doing wrong here? Thank you! Attachments 1603401633532.png 45.2 KB · Views: 477
Hi All, I am sure I am doing something wrong as I couldn't find any mention for my problem in the forum. I have a toolbar1 set to text with tag update. Code: Copy Sub B4XPage_MenuClick (Tag As String) If Tag = "update" Then log("test") End If End Sub Click to expand... The code above is supposed to work only when the tag update is returned - when I press on the toolbar text, but this is not the case. Since I have B4XFloatTextField, when I focus (enter to edit/input the field) the code above is triggered!! if I understand correctly it shall only trigger when I press on the toolbar text. I do not have any other fields that has "update" as a tag, as a matter of fact I have checked all the B4XFloatTextField none had tags, so I have specified different tags so It only returns when I press on the toolbar but to no avail! not sure how it see the tag as update when I press on B4XFloatTextField. Any idea of what I am doing wrong here? Thank you!
Erel B4X founder Staff member Licensed User Longtime User Oct 23, 2020 #2 Please create a small project that demonstrates it and upload the project. Upvote 0
A AymanA Active Member Licensed User Oct 23, 2020 #3 Thank you Erel for your reply, I have attached the project that shall demonstrate the problem - I am trying the B4i project. Attachments Project.zip Project.zip 175.1 KB · Views: 341 Upvote 0
Thank you Erel for your reply, I have attached the project that shall demonstrate the problem - I am trying the B4i project.
A AymanA Active Member Licensed User Oct 23, 2020 #4 Actually I doubt this is only related to B4XFloatTextField - I have just tested and can see if I even pressed outside of the B4XFloatTextField it triggers the B4XPage_MenuClick as if the tag is update, which is not the desired outcome Upvote 0
Actually I doubt this is only related to B4XFloatTextField - I have just tested and can see if I even pressed outside of the B4XFloatTextField it triggers the B4XPage_MenuClick as if the tag is update, which is not the desired outcome
Semen Matusovskiy Well-Known Member Licensed User Oct 23, 2020 #5 You should not place in Class_Globals executable statements. I mean Main.NavControl.ToolBarVisible=True Upvote 0
You should not place in Class_Globals executable statements. I mean Main.NavControl.ToolBarVisible=True
A AymanA Active Member Licensed User Oct 23, 2020 #6 I tried to place it in B4XPage_Created but same effect Upvote 0
Semen Matusovskiy Well-Known Member Licensed User Oct 23, 2020 #7 B4XPage_Created is a good place. Meanwhile I don't see a problem at all. There is no B4XPage_MenuClick event, when I edit B4XFloatTextField1. Probably a problem in releases (I used (B4i 6.80, IOS 14 simulator). Upvote 0
B4XPage_Created is a good place. Meanwhile I don't see a problem at all. There is no B4XPage_MenuClick event, when I edit B4XFloatTextField1. Probably a problem in releases (I used (B4i 6.80, IOS 14 simulator).
A AymanA Active Member Licensed User Oct 23, 2020 #8 Thank you so much for your reply and for testing out, it is indeed strange, I am on 13.5 so will try to update to ios 14 (xcode 12) and will check if it is the same problem or not Upvote 0
Thank you so much for your reply and for testing out, it is indeed strange, I am on 13.5 so will try to update to ios 14 (xcode 12) and will check if it is the same problem or not
A AymanA Active Member Licensed User Oct 24, 2020 #9 You are right! the behavior doesn't occur on ios 14!! so not really a problem except from the simulator itself thank you so much for your help on this problem. I will mark this as Solved now! Upvote 0
You are right! the behavior doesn't occur on ios 14!! so not really a problem except from the simulator itself thank you so much for your help on this problem. I will mark this as Solved now!