Recent

Author Topic: TDBEdit uneditable  (Read 1216 times)

LemonParty

  • Sr. Member
  • ****
  • Posts: 362
TDBEdit uneditable
« on: January 24, 2025, 06:37:57 pm »
I have a weird behavior. When I set focus into TDBEdit the value of cell dissappear. Half of my TDBEdits have this problem the other ones work normally. Readonly property is not set up. Why is this happening?
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12531
  • FPC developer.
Re: TDBEdit uneditable
« Reply #1 on: January 24, 2025, 06:51:32 pm »
Hard to say. Maybe a dataset with an "on update"  event that only implements some fields?

LemonParty

  • Sr. Member
  • ****
  • Posts: 362
Re: TDBEdit uneditable
« Reply #2 on: January 24, 2025, 07:11:31 pm »
No on update event. I tryied with different dataset and it works fine.
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

ackarwow

  • Full Member
  • ***
  • Posts: 163
    • Andrzej Karwowski's Homepage
Re: TDBEdit uneditable
« Reply #3 on: January 24, 2025, 07:29:42 pm »
I have a weird behavior. When I set focus into TDBEdit the value of cell dissappear. Half of my TDBEdits have this problem the other ones work normally. Readonly property is not set up. Why is this happening?

Hi @LemonParty

Maybe OnEnter event is set and nulling the field?

korba812

  • Sr. Member
  • ****
  • Posts: 482
Re: TDBEdit uneditable
« Reply #4 on: January 25, 2025, 12:19:36 am »
Maybe you have something in TField.EditFormat property that is causing this problem?

LemonParty

  • Sr. Member
  • ****
  • Posts: 362
Re: TDBEdit uneditable
« Reply #5 on: January 25, 2025, 03:48:30 pm »
EditFormat is empty in all fields.
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

LemonParty

  • Sr. Member
  • ****
  • Posts: 362
Re: TDBEdit uneditable
« Reply #6 on: January 25, 2025, 03:55:58 pm »
I found the reason. Field have set up event GetText.
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

 

TinyPortal © 2005-2018