Recent

Author Topic: Meaning of ReadOnly property in TEdit  (Read 2265 times)

simone

  • Hero Member
  • *****
  • Posts: 573
Meaning of ReadOnly property in TEdit
« on: May 05, 2018, 12:38:52 pm »
I noticed that in a TEdit control, I can change the Text property via code even if ReadOnly is set to True. This setting only prevents the user from changing the text. Is this by design? Thanks for support.
Microsoft Windows 10 64 bit - Lazarus 3.0 FPC 3.2.2 x86_64-win64-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11857
Re: Meaning of ReadOnly property in TEdit
« Reply #1 on: May 05, 2018, 01:40:14 pm »
Yes.

Blaazen

  • Hero Member
  • *****
  • Posts: 3237
  • POKE 54296,15
    • Eye-Candy Controls
Re: Meaning of ReadOnly property in TEdit
« Reply #2 on: May 05, 2018, 02:58:28 pm »
With ReadOnly, you can still focus TEdit, select text and use Ctrl+C. Useful.
Lazarus 2.3.0 (rev main-2_3-2863...) FPC 3.3.1 x86_64-linux-qt Chakra, Qt 4.8.7/5.13.2, Plasma 5.17.3
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

 

TinyPortal © 2005-2018