Recent

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

Vittorio

  • New Member
  • *
  • Posts: 32
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

  • Hero Member
  • *****
  • Posts: 1052
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.
Preview Lazarus 3.99 documentation at: https://dsiders.gitlab.io/lazdocsnext

Vittorio

  • New Member
  • *
  • Posts: 32
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.

balazsszekely

  • Guest
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