Jump to content
Sign in to follow this  
pquessev

Question about TPasswordEditButton inside TEdit field

Recommended Posts

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.

Share this post


Link to post

How does this construct work on Windows? As expected?

Share this post


Link to post

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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×