Jul 16, 2014, 6:03 PM
Show and hide one textfield button and only one on focus and blur events
Hi,
I need to find the best approach to resolve this scenario:
I have a textfield with 2 leftbuttons and 3 rightbuttons.
I need that only one of the rightbuttons shows when textfield has focus and hides when it lost focus while the rest of the buttons stay always visible.
Obviusly, the properties showleftbuttonsmode and showrightbuttonsmode don't serves me because them shows or hides all the left or right buttons when the property is marked as focus.
I tried with the focus and blur listeners of the textfield and it works! the button shows and hides on focus an blur events of the textfield but...when i try to click the button the textfield loses focus and the blur event of it is raised and the button is hidded before i can click on the button.
so... any idea?
Thanks a lot for your help.
Nicodemus
I need to find the best approach to resolve this scenario:
I have a textfield with 2 leftbuttons and 3 rightbuttons.
I need that only one of the rightbuttons shows when textfield has focus and hides when it lost focus while the rest of the buttons stay always visible.
Obviusly, the properties showleftbuttonsmode and showrightbuttonsmode don't serves me because them shows or hides all the left or right buttons when the property is marked as focus.
I tried with the focus and blur listeners of the textfield and it works! the button shows and hides on focus an blur events of the textfield but...when i try to click the button the textfield loses focus and the blur event of it is raised and the button is hidded before i can click on the button.
so... any idea?
Thanks a lot for your help.
Nicodemus