Recent

Author Topic: Should TEdit.Clear cause TEdit.Modified to be reset?  (Read 2277 times)

Zoran

  • Hero Member
  • *****
  • Posts: 1988
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Should TEdit.Clear cause TEdit.Modified to be reset?
« Reply #15 on: March 05, 2026, 06:43:53 pm »
Reported as Issue #42084, so that it won't be forgotten.

Bart

Why? Would a user really expect that setting the text to what it has already been has side effects?
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

Bart

  • Hero Member
  • *****
  • Posts: 5713
    • Bart en Mariska's Webstek
Re: Should TEdit.Clear cause TEdit.Modified to be reset?
« Reply #16 on: March 05, 2026, 10:07:40 pm »
Why? Would a user really expect that setting the text to what it has already been has side effects?

Because it is a Delphi incompatibility.

Bart

 

TinyPortal © 2005-2018