Telegram_2025-02-09T10

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2025 > 02 > 09 >

Telegram_2025-02-09T10

Telegram link

 

2025-02-09T10:36:54

 

type: mention @Alex7691 Just found a bug in TIWEdit. After almost 20 years — I used the FocusColor of TIWEdit. I'm making a data entry screen that even kids can use, so I thought to use FocusColor, which I set to clWebPEACHPUFF. It seemed to work great, at first. But then I decided to add some more stuff to help people get the data entered correctly. For certain types of records, they need to pay special attention to 3 different edit boxes. So, OnAsyncExit of a certain TIWEdit — if we are dealing with a the record type that needs special attention — I set 3 other TIWEdit.BGColor to clWebYELLOW. It actually worked — people loved it, it was a good reminder. Now I'm a rock star. But then I noticed that when you tab thru those edit boxes — the FocusColor cancels the BGColor. In reality — the BGColor should be persistent until I set it to something else. After the focus is gone — the BGColor should return. It looks like you are setting it to clNone OnExit of TIWEdit.