B4J Question [SOLVED]B4XFloatTextField and B4XDialog

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
How I can change from code a B4XFloatTextField control to work as a normal TextField or PasswordField?
How I change the size and the position of the Button for B4XDialog?
The "Cancel" button does not show all the Text
Thanks
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
How I can change from code a B4XFloatTextField control to work as a normal TextField or PasswordField?
What does it mean? B4XFloatTextField is based on a "normal" TextField.

How I change the size and the position of the Button for B4XDialog?
The "Cancel" button does not show all the Text
It should show fine with the default settings. You can change the layout with:
B4X:
Sub Button1_Click
    Dim rs As Object = Dialog.Show("?", "Yes", "", "C a n c e l")
    Dim btn As B4XView = Dialog.GetButton(xui.DialogResponse_Cancel)
    btn.Left = btn.Left - 20dip
    btn.Width = 100dip
    Wait For (rs) Complete (Result As Int)
End Sub
 
Upvote 0

micro

Well-Known Member
Licensed User
Longtime User
What does it mean? B4XFloatTextField is based on a "normal" TextField.
Ok, sure
I am referring to this function (as Password Field or Not)
1602510359420.png

enable/disable from code

It should show fine with the default settings. You can change the layout with:
B4X:
Sub Button1_Click
Dim rs As Object = Dialog.Show("?", "Yes", "", "C a n c e l")
Dim btn As B4XView = Dialog.GetButton(xui.DialogResponse_Cancel)
btn.Left = btn.Left - 20dip
btn.Width = 100dip
Wait For (rs) Complete (Result As Int)
End Sub
šŸ‘ Thanks
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Get the native Edittext from the B4XFloatTextField and set the Inputtype

B4X:
 Dim txt As TextField= B4XFloatTextField1.TextField
txt.InputType = ....

PD: Edit to add: Sorry, B4J Textfield does not have a Inputtype Property like in B4A. Ignore my answer
 
Last edited:
Upvote 0
Top