Android Question [Solved] B4XFloatTextField, Password

mw71

Active Member
Licensed User
Longtime User
Thanks for Anser,

i have (Cross) Check my and the Example, i found no diffrent.
Set TextColor to Black, no change

Attacht the BAL File where i Test it.
 

Attachments

  • ftp_zugang.bal
    9.1 KB · Views: 131
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
This is how it looks here:

SS-2019-05-16_17.02.44.png
 
Upvote 0

mw71

Active Member
Licensed User
Longtime User
OK thanks.

I tested it on my "main" Panel, works as expected.

This layout (BAL file)
- I load it into a ScrollView (.... SV_FTP.Panel.LoadLayout ("ftp_zugang") .....)
- the ScrollView is show with a CustomDialog (-->> i think the Problem?)
- the HintColor is not correct (not the selection in Designer)


the used Code
B4X:
    Dim CV As CustomDialog
    Dim SV_FTP As ScrollView
    Dim ret As Int
    
    SV_FTP.Initialize(800dip)
    SV_FTP.Panel.LoadLayout("ftp_zugang")
    SV_FTP.Panel.Tag = "ftp Zugang"
    SV_FTP.panel.Height = ftp_chk_SavePW.Top + (ftp_chk_SavePW.Height * 3 ) + 10dip
    CV.AddView(SV_FTP,0dip,0dip,100%x,100%y)
    
'fill with Data.....

    ret=CV.Show("FTP Zugang", _
        Starter.loc.Localize("txt_Save"), _
        Starter.loc.Localize("txt_Cancel"),"",Null)
    If ret = DialogResponse.POSITIVE Then
 
Upvote 0

mw71

Active Member
Licensed User
Longtime User
hi,

attach a "ugly" test project.

In the Main (1.bal) all o.k., push Button 1, scroll down, this Password Fiel dont Work.

Thank for Help!
 

Attachments

  • Test.zip
    10.8 KB · Views: 130
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

mw71

Active Member
Licensed User
Longtime User
The error happens because you are using a modal dialog. Never use modal dialogs. This doesn't let B4XFloatTextField update itself properly.
o.k., CustomDialog = Modal Dialog, dont work with B4XFloatTextField (and is old/"bad")
CustomLayoutDialog = non Modal Dialog, Test -> Works (and new/better way)

This Part is old. At the Time i have Create it, there was no non Modal Dialog in B4A.


This looks fine and is the Reason where i "found" B4XFloatTextField. Unfortunly there is no (easy) way to show Text (Lable, for description e.g.), or have i not found it?
I plan to use it to Replace the User/Password request.
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Unfortunly there is no (easy) way to show Text (Lable, for description e.g.), or have i not found it?
B4XPreferencesDialog is quite new. If you thing that something is missing then post it and hopefully it will be added.

You can add "separator" items with text and each other a title field that shows in the forum.
 
Upvote 0
Top