M micro Well-Known Member Licensed User Longtime User Oct 11, 2020 #1 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
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 Oct 12, 2020 #2 micro said: How I can change from code a B4XFloatTextField control to work as a normal TextField or PasswordField? Click to expand... What does it mean? B4XFloatTextField is based on a "normal" TextField. micro said: How I change the size and the position of the Button for B4XDialog? The "Cancel" button does not show all the Text Click to expand... It should show fine with the default settings. You can change the layout with: Code: Copy 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 said: How I can change from code a B4XFloatTextField control to work as a normal TextField or PasswordField? Click to expand... What does it mean? B4XFloatTextField is based on a "normal" TextField. micro said: How I change the size and the position of the Button for B4XDialog? The "Cancel" button does not show all the Text Click to expand... It should show fine with the default settings. You can change the layout with: Code: Copy 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
M micro Well-Known Member Licensed User Longtime User Oct 12, 2020 #3 Erel said: What does it mean? B4XFloatTextField is based on a "normal" TextField. Click to expand... Ok, sure I am referring to this function (as Password Field or Not) enable/disable from code Erel said: It should show fine with the default settings. You can change the layout with: B4X: Copy 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 Click to expand... ? Thanks Upvote 0
Erel said: What does it mean? B4XFloatTextField is based on a "normal" TextField. Click to expand... Ok, sure I am referring to this function (as Password Field or Not) enable/disable from code Erel said: It should show fine with the default settings. You can change the layout with: B4X: Copy 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 Click to expand... ? Thanks
DonManfred Expert Licensed User Longtime User Oct 12, 2020 #4 Get the native Edittext from the B4XFloatTextField and set the Inputtype B4X: Copy 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: Oct 12, 2020 Upvote 0
Get the native Edittext from the B4XFloatTextField and set the Inputtype B4X: Copy 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
Erel B4X founder Staff member Licensed User Longtime User Oct 13, 2020 #5 It is not possible to change it programmatically. You can create two views and replace them as needed. Upvote 0
It is not possible to change it programmatically. You can create two views and replace them as needed.
M micro Well-Known Member Licensed User Longtime User Oct 13, 2020 #6 Erel said: It is not possible to change it programmatically. You can create two views and replace them as needed. Click to expand... Ok, Thanks Upvote 0
Erel said: It is not possible to change it programmatically. You can create two views and replace them as needed. Click to expand... Ok, Thanks