Search code examples
delphifiremonkey

Show TEdit in FireMonkey has an error in it with red border


I'm working on a mobile application where the user needs to login.

The server is returning me if the e-mail is invalid, or subdomain or password and I want to focus the TEdit that has the error. Focus is easy but I would also like to mark the edit as invalid like many web applications do.

enter image description here

What is the best way to do this is a consistent way so it will look correct on both Android as iOS. Is something like this built-in? I'm using Delphi 10.1


Solution

  • Loki's suggestion is a possible solution.

    A solution which takes advantage of FMX features would be to use a TGlowEffect for the red frame around the TEdit and then use a TPopup to create the hint.