Rusty Well-Known Member Licensed User Longtime User May 19, 2019 #1 Is there a focuschanged event for the B4xFloatTextField? If so, how? Thanks, Rusty
Erel B4X founder Staff member Licensed User Longtime User May 20, 2019 #2 You can see the available event in the IDE: Currently there is no focused event. What do you need it for? Upvote 0
You can see the available event in the IDE: Currently there is no focused event. What do you need it for?
Rusty Well-Known Member Licensed User Longtime User May 20, 2019 #3 Yes, I could see the available events, but you have, in the past shown "undocumented" events/methods that have been very helpful I have created a large "form" that spans more than one screen. I want to be able to scroll the form to show the focused b4xFloatTextField so the user can see what they are typing. Other ideas are welcome. Rusty Upvote 0
Yes, I could see the available events, but you have, in the past shown "undocumented" events/methods that have been very helpful I have created a large "form" that spans more than one screen. I want to be able to scroll the form to show the focused b4xFloatTextField so the user can see what they are typing. Other ideas are welcome. Rusty
E Eldad Onojetah Member Licensed User Longtime User May 20, 2019 #4 I usually have the following in my Manifest editor Code: SetActivityAttribute(_name_of_activity_here, android:windowSoftInputMode, stateHidden|adjustResize) Upvote 0
I usually have the following in my Manifest editor Code: SetActivityAttribute(_name_of_activity_here, android:windowSoftInputMode, stateHidden|adjustResize)
Rusty Well-Known Member Licensed User Longtime User May 20, 2019 #5 Thanks Eldad, I have this in my manifest already, but am not clear what it is supposed to do. can you please advise? Rusty Upvote 0
Thanks Eldad, I have this in my manifest already, but am not clear what it is supposed to do. can you please advise? Rusty
Rusty Well-Known Member Licensed User Longtime User May 20, 2019 #6 Alternately, I'd like to invoke an input dialog that will bring the input field to the forefront; allow entry and then disappear, but I still need to know which view has focus...I think... Upvote 0
Alternately, I'd like to invoke an input dialog that will bring the input field to the forefront; allow entry and then disappear, but I still need to know which view has focus...I think...
Erel B4X founder Staff member Licensed User Longtime User May 20, 2019 #7 Check B4XPreferencesDialog. It will take care of many things that you need when building input / form dialogs. Upvote 0
Check B4XPreferencesDialog. It will take care of many things that you need when building input / form dialogs.
Rusty Well-Known Member Licensed User Longtime User May 20, 2019 #8 Perfect!! Thanks for all the help. The B4xPreferencedDialog is what I need. (However, the OPTIONS display is inconsistent with Text, numeric and password display. OPTIONS displays as bold and the hint is to the left instead of above like the rest...) Thanks!! Upvote 0
Perfect!! Thanks for all the help. The B4xPreferencedDialog is what I need. (However, the OPTIONS display is inconsistent with Text, numeric and password display. OPTIONS displays as bold and the hint is to the left instead of above like the rest...) Thanks!!
E Eldad Onojetah Member Licensed User Longtime User May 20, 2019 #9 Rusty said: Thanks Eldad, I have this in my manifest already, but am not clear what it is supposed to do. can you please advise? Rusty Click to expand... Android is supposed to automatically scroll the input field into view. Isn't it happening for you? Upvote 0
Rusty said: Thanks Eldad, I have this in my manifest already, but am not clear what it is supposed to do. can you please advise? Rusty Click to expand... Android is supposed to automatically scroll the input field into view. Isn't it happening for you?
Rusty Well-Known Member Licensed User Longtime User May 20, 2019 #10 Android is supposed to automatically scroll the input field into view. Isn't it happening for you? Click to expand... No...Thanks though I'm converting to B4xPreferencedDialog... Upvote 0
Android is supposed to automatically scroll the input field into view. Isn't it happening for you? Click to expand... No...Thanks though I'm converting to B4xPreferencedDialog...
Rusty Well-Known Member Licensed User Longtime User Jun 20, 2019 #11 Ok, this is working well, except I still need a Focus event or even a Click event. The reason is because I need to display a "Tool Tip" for the item being edited. I can see the IME Height changed event, which could work, but there is no SENDER or way (I can see) to detect which item within the dialog was clicked, focused, etc. to determine the proper tooltip. BTW, the tooltip is available within a type structure within the preference dialog class, but since there is no focus event, the tooltip can't get set. Any ideas/suggestions are appreciated Rusty Upvote 0
Ok, this is working well, except I still need a Focus event or even a Click event. The reason is because I need to display a "Tool Tip" for the item being edited. I can see the IME Height changed event, which could work, but there is no SENDER or way (I can see) to detect which item within the dialog was clicked, focused, etc. to determine the proper tooltip. BTW, the tooltip is available within a type structure within the preference dialog class, but since there is no focus event, the tooltip can't get set. Any ideas/suggestions are appreciated Rusty
Erel B4X founder Staff member Licensed User Longtime User Jun 20, 2019 #12 Extract the class from XUI Views.b4xlib. Rename it and create your own text field. It should be simple to expose the focus event. Upvote 0
Extract the class from XUI Views.b4xlib. Rename it and create your own text field. It should be simple to expose the focus event.