Lazarus

Programming => Databases => Topic started by: Vittorio on July 14, 2020, 08:14:20 am

Title: Unable to type smth. into DBMemo
Post by: Vittorio 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?
Title: Re: Unable to type smth. into DBMemo
Post by: dsiders 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.
Title: Re: Unable to type smth. into DBMemo
Post by: Vittorio 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.
Title: Re: Unable to type smth. into DBMemo
Post by: GetMem 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