Wish B4XFloatTextField Accept,Reveal,Clear Button turn off or change side left<->right

Magma

Expert
Licensed User
Longtime User
Hi,

will be nice for B4XFloatTextField butons Accept,Reveal,Clear can turn off or change them side left<->right...

For B4J and B4A (for B4A seen @oparra 's solution)...

ps: if it is possible with javaobject or cssutils will be helpful too...
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
You can turn them off in the designer options

1642770892162.png


B4XFloatText is contained in Xui Views which is a B4XLib - Which means you can extract it with 7zip and modify the class to suit the position you like
 

William Lancee

Well-Known Member
Licensed User
Longtime User
I have tested this in B4J

Edit: unfortunately the unseen item still responds to a click event.
Edit: You also have to set the tags to blanks

B4X:
        'To turn 'clear' and 'accept' off
        B4XFloatTextField1.lblClear.text = ""
        B4XFloatTextField1.lblV.text = ""

        B4XFloatTextField1.lblClear.tag = ""
        B4XFloatTextField1.lblV.tag = ""

'        'To turn them on
'        B4XFloatTextField1.lblClear.text = Chr(0xE14C)
'        B4XFloatTextField1.lblV.text = Chr(0xE5CA)

'        B4XFloatTextField1.lblClear.tag = "clear"
 '       B4XFloatTextField1.lblV.tag = "accept"

'        If in password mode and reveal switch is set then lblClear is the reveal icon
'        It is not possible to switch from password to non-password mode in code
'        Therefore I keep two distinct B4XFloatTextField views, to set reveal use...
'        B4XFloatTextField1.lblClear.text = Chr(0xE8F4)
 '       B4XFloatTextField1.lblV.tag = "reveal"
 
Last edited:

William Lancee

Well-Known Member
Licensed User
Longtime User
Another approach is to turn these off in designer and add your own buttons, to either left or right of the custom view.
Then you'll have full control.
 

TILogistic

Expert
Licensed User
Longtime User
Hi,

will be nice for B4XFloatTextField butons Accept,Reveal,Clear can turn off or change them side left<->right...

For B4J and B4A (for B4A seen @oparra 's solution)...

ps: if it is possible with javaobject or cssutils will be helpful too...
you mean this post??
 

TILogistic

Expert
Licensed User
Longtime User
Some time ago I published how B4XFloatTextField could be configured, in the Spanish forum, since I use this view a lot and I didn't want to modify the class code.
 

mmieher

Active Member
Licensed User
Longtime User
I have tested this in B4J

Edit: unfortunately the unseen item still responds to a click event.
Edit: You also have to set the tags to blanks

B4X:
        'To turn 'clear' and 'accept' off
        B4XFloatTextField1.lblClear.text = ""
        B4XFloatTextField1.lblV.text = ""

        B4XFloatTextField1.lblClear.tag = ""
        B4XFloatTextField1.lblV.tag = ""

'        'To turn them on
'        B4XFloatTextField1.lblClear.text = Chr(0xE14C)
'        B4XFloatTextField1.lblV.text = Chr(0xE5CA)

'        B4XFloatTextField1.lblClear.tag = "clear"
 '       B4XFloatTextField1.lblV.tag = "accept"

'        If in password mode and reveal switch is set then lblClear is the reveal icon
'        It is not possible to switch from password to non-password mode in code
'        Therefore I keep two distinct B4XFloatTextField views, to set reveal use...
'        B4XFloatTextField1.lblClear.text = Chr(0xE8F4)
 '       B4XFloatTextField1.lblV.tag = "reveal"
Have not tried, but can you do this?
B4X:
B4XFloatTextField1.lblClear.Enabled = False
 
Top