[fpc-pascal] How to customize a TDBMemo
Felipe Monteiro de Carvalho
felipemonteiro.carvalho at gmail.com
Sun Sep 7 01:35:02 CEST 2008
Hello,
I am using a TDBMemo with a TSdfDataset, but this database uses
newlines to separate the records, so it's impossible to store data
with multiple lines.
So I thougth that I could do a trick, and process the data before
showing in the TDBMemo and also before sending it again to the
database. I would store newlines as a special character, say # in the
database and then convert them to new lines to show in the TDBMemo.
How can this be achieved?
I could not find events which would allow me to do this, so I tryed to
create a TDBMemo descendent and override some method, but this also
doesn't work, because I would need to access private fields in TDBMemo
(specially FDataLink).
Do I really need to create a completely new component or is there some
strategy to customize the existing TDBMemo?
thanks,
--
Felipe Monteiro de Carvalho
More information about the fpc-pascal
mailing list