Android Question InputTemplate resize TextField1

edgar_ortiz

Active Member
Licensed User
Longtime User
Hi,

I am using B4XInputTemplate to capture information, I have the problem when there is a "long field" (many words), I am NOT able to make the "input field" bigger.

B4X:
Private Sub Button_Large_Click
    Log("ORIGINAL Input_User.TextField1.Height:")
    Log(Input_User.TextField1.Height)
    '
    Input_User.lblTitle.Text        = "Enter comments"
    Input_User.Text                    = "This is an example of a long field, with many words"
    Input_User.mBase.Height            = 30%y
    Input_User.TextField1.Height    = Input_User.TextField1.Height * 3
    Input_User.TextField1.SetTextAlignment("CENTER","CENTER")
    '
    Log("Input_User.TextField1.Height:")
    Log(Input_User.TextField1.Height)
    '
    Wait For (Dialog.ShowTemplate(Input_User, "OK", "", "CANCEL")) Complete (Result As Int)
    If Result = xui.DialogResponse_Positive Then
        Log("Input:")
        Log(Input_User.Text)
    End If
    
End Sub

Any help welcome.
 

Attachments

  • Regular.jpg
    Regular.jpg
    258.4 KB · Views: 56
  • Large.jpg
    Large.jpg
    261.9 KB · Views: 58
  • Test_Input.zip
    9.5 KB · Views: 49

edgar_ortiz

Active Member
Licensed User
Longtime User
Hi DonManfred,

Thank you for your time.

Dialog size is already increased, but "TextField1.height" is not working.

I have a question: Add an "editbox" to "InputTemplate"?

I checked this post, but I can't get it to work

Regards,

Edgar
 
Last edited:
Upvote 0
Top