Jump to content

pquessev

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. Hello, I developed an application that implements a password input feature, in which the user should be able to temporarily display the password. I defined the input fields in a rectangle whose visibility I can control. I added a TPasswordEditButton to the TEdit field (on Android, I use a TEditButton and implement the MouseUp and MouseDown event processing). This approach works, but I was wondering if it was possible to achieve a similar result with TDialogServiceASync. On Windows, the construction of the dialog elements is done in TDialogBuilder.InputQuery in FMX.DialogHelper. I modified this function to add a TPasswordEditButton component to the Edit field when the input is identified as a password. It works very well. If I understand correctly, in Android, the dialog construction isn't done in this function but in FMXDialogHelpers.java. I'm not an Android Java expert, but I have a feeling there might be a way to modify this function to use a TextInputEditText field, which seems to have a feature to show/hide the password. However, I'm not sure how feasible this modification would be. Do you have any ideas on this?
  2. pquessev

    Question about TPasswordEditButton inside TEdit field

    Yes, it works fine on Windows. I hadn't paid attention but in the form editor the eye button is not displayed when style is Android, and when changing style to windows it is displayed correctly.
  3. I have set a TEdit field with Password=true, and I have added a TPasswordEditButton as an element to the TEdit field. The TPasswordEditButton works as expected: when I click on the right side of the TEdit field the password is displayed in clear text. However, the TPasswordEditButton is not visible on the screen. Normally I should see a symbol on the right of the field. I have tried to set a text in the TPasswordEditButton, but it is not visible either. I can achieve the desired result by using a TEditButton element instead of TPasswordEditButton, and handling the MouseDown and MouseUp events, but is there something special to do to get the TPasswordEditButton displayed inside the TEdit field? I use Delphi 12 Update 1, and my test platform is Galaxy S24 running Android 14.
×