Android Question (Closed) AS_TextFieldAdvanced1.Refresh?

anOparator

Active Member
Licensed User
Longtime User
In my project AS_TextFieldAdvanced1.Hint.Text only refreshes when AS_TextFieldAdvanced1.Text Is "" even though the comments show in the Logs.
I've tried Using Select/Case also.
Is this intentional or am I missing something?
Thanks in advance.
 

Attachments

  • AS_TextFieldAdvancedTest.zip
    21 KB · Views: 25

DonManfred

Expert
Licensed User
Longtime User
Is this intentional or am I missing something?
i only know it like this.

The hint is only shown when the textfield is empty.
The hint disappear if you enter something to the textfield.
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
In my project AS_TextFieldAdvanced1.Hint.Text only refreshes when AS_TextFieldAdvanced1.Text Is "" even though the comments show in the Logs.
I've tried Using Select/Case also.
Is this intentional or am I missing something?
is fixed in V1.36
The hint is only shown when the textfield is empty.
The hint disappear if you enter something to the textfield.
That's right, I handle this with the .Visible property. But for whatever reason I had in the code that it should only update the hint text if the TextField is empty, which makes no sense, because I hide the label if text is written.
 
Upvote 0

anOparator

Active Member
Licensed User
Longtime User
I was hoping there were a few undocumented Properties in AS_TextFieldAdvanced, it does the Null entry and character Count while Select/Case covers the other Numbers.
B4X:
Private Sub CheckFields    
    If AS_TextFieldAdvanced4.Text = "" Then
        AS_TextFieldAdvanced4.Hint.Text = "This field really needs a picture #"
        AS_TextFieldAdvanced4.Refresh
    Else
        otreNum
    End If
End Sub

Private Sub otreNum
    Select True
        Case AS_TextFieldAdvanced4.Text > 1 And AS_TextFieldAdvanced4.Text < 101
            Label1.Text = AS_TextFieldAdvanced4.Text
            Label1.BringToFront
            AS_TextFieldAdvanced4.Text = ""
            AS_TextFieldAdvanced4.Hint.Text = " good # between 1 and 101"    ' fsfsfs
            AS_TextFieldAdvanced4.Refresh
            ImageView1.SetBitmap(xui.LoadBitmapResize(File.DirAssets,"b4Logo.png",ImageView1.Width,ImageView1.Height,True))
                Log( "  good # between 1 and 101")
            Log( "")

        Case AS_TextFieldAdvanced4.Text = 0
...
...
Thanks for the comments and developer feedback.
 

Attachments

  • my_AS TextFieldAdvanced Example.zip
    15 KB · Views: 22
Upvote 0
Top