- Jun 6, 2020
- 11,559
- 4,422
I followed this post
and added the code to the B4XPage_Created event.
B4X:
Layout setup:
In the Designer, placed 2 B4XFloatTextFields on a layout: txtUserName, txtPassword.
Set the Hint Text for both: User Name, Password (no leading spaces).
No Padding property value for both.
For txtPassword, the Password Field property is checked.
Observations:
1. When running the app in Debug mode, the Hint Text is shown to the far left and the Padding is not honored, therefore when the cursor is placed in the field, the cursor is in-between the first and second characters. Not good.
2. When text is typed in (both fields), the Hint goes to the top - as it should - and...
برای دیدن لینک ها باید ثبت نام کنید
and added the code to the B4XPage_Created event.
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
Layout setup:
In the Designer, placed 2 B4XFloatTextFields on a layout: txtUserName, txtPassword.
Set the Hint Text for both: User Name, Password (no leading spaces).
No Padding property value for both.
For txtPassword, the Password Field property is checked.
Observations:
1. When running the app in Debug mode, the Hint Text is shown to the far left and the Padding is not honored, therefore when the cursor is placed in the field, the cursor is in-between the first and second characters. Not good.
2. When text is typed in (both fields), the Hint goes to the top - as it should - and...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید