Recent

Author Topic: Use similarly to a TEdit  (Read 583 times)

Tony Stone

  • Full Member
  • ***
  • Posts: 219
Use similarly to a TEdit
« on: December 20, 2023, 04:45:34 pm »

I'm seeking advice on using a TSynEdit for a password generator application. Currently, I use a TEdit control but want to introduce character-specific color highlighting (e.g., letters in black, numbers in green, symbols in red). I find TSynEdit somewhat overkill for this purpose, especially since I need it to function like a single-line TEdit. I've also tried TRichMemo, but it's been problematic, particularly with Linux compilations.

Is there an alternative to TSynEdit or RichMemo that's more suitable for simple highlighting in a single-line edit control? My experience with RichMemo hasn't been ideal, as character-by-character highlighting performs poorly with long strings. Any suggestions for an edit control capable of changing text color would be greatly appreciated.

 

TinyPortal © 2005-2018