lostfocus event for edittext?

jschuchert

Active Member
Licensed User
Longtime User
I think I know the answer but will ask anyway. Is there an equivalent or work-around for lostfocus like in vb6 or onblur like in nsbasic for the edittext box?
 

Theera

Well-Known Member
Licensed User
Longtime User
I think I know the answer but will ask anyway. Is there an equivalent or work-around for lostfocus like in vb6 or onblur like in nsbasic for the edittext box?

Hi,
Try this code
'This code from Klaus'own search from forum
edt.InputType = edt.INPUT_TYPE_NONE
Dim obj1 As Reflector
obj1.Target = edt
obj1.RunMethod2("setFocusable", "False", "java.lang.boolean")
 
Upvote 0

jschuchert

Active Member
Licensed User
Longtime User
Thank you njdude and theera.

njdude's suggestion seems to work for my purposes. Where is the documentation found for these kinds of things? I thought I searched well but couldn't find anything.
 
Upvote 0

jschuchert

Active Member
Licensed User
Longtime User
Silly me! I should have known b4a wouldn't leave out a valuable feature like that, but wish it would have been easier to find. That one is now bookmarked.

I don't want to sound negative but it seems like the documentation is somewhat scattered. It would be really helpful for those like me to have it all in the same place. The link you provided is certainly a help. Incidentally, I got my 'veteran' status only because of the length of time I have been around and definitely not because of any expertise. Thanks, Erel.
 
Upvote 0
Top