Recent

Author Topic: Unable to type smth. into DBMemo  (Read 263 times)

Vittorio

  • New Member
  • *
  • Posts: 24
Unable to type smth. into DBMemo
« on: July 14, 2020, 08:14:20 am »
Hi there,
Seems to be a stupid question  :)
When I put DBMemo on form it's impossible to type something into this control. ReadOnly = FALSE.
Is it possible to make TDBMemo writable like a TMemo?

dsiders

  • Sr. Member
  • ****
  • Posts: 333
Re: Unable to type smth. into DBMemo
« Reply #1 on: July 14, 2020, 08:16:33 pm »
Hi there,
Seems to be a stupid question  :)
When I put DBMemo on form it's impossible to type something into this control. ReadOnly = FALSE.
Is it possible to make TDBMemo writable like a TMemo?

Sure. Did you set the DataField and DataSource? They're required.
Lazarus 2.1 (SVN) / FPC 3.0.4 / FPC 3.2.0 / x86-win64 / Windows 8.1

Vittorio

  • New Member
  • *
  • Posts: 24
Re: Unable to type smth. into DBMemo
« Reply #2 on: July 16, 2020, 09:53:05 am »
Sure. Did you set the DataField and DataSource? They're required.
Yes. It works fine with DB and shows text fields from it. But sometimes I want to edit some text fields and come accross with impossibility to enter text into DBMemo.

GetMem

  • Hero Member
  • *****
  • Posts: 3753
Re: Unable to type smth. into DBMemo
« Reply #3 on: July 16, 2020, 01:26:30 pm »
@Vittorio
Quote
Yes. It works fine with DB and shows text fields from it. But sometimes I want to edit some text fields and come accross with impossibility to enter text into DBMemo.
Set DBGrid->Options->dgEditing and dgAlwaysShowEditor to true.

 

TinyPortal © 2005-2018