TDBMemo, cannot make a custom change from the displayed text
Original Reporter info from Mantis: mmvisual
-
Reporter name: Markus Müller
Original Reporter info from Mantis: mmvisual
- Reporter name: Markus Müller
Description:
If the TField.OnGetText is used with convert the String into a TDBGrid, the TDBMemo use the same conversion.
But I need a other text in the TDBMemo, a non converted.
For this I thing the most flexibility is having extra events in TDBMemo.OnGetText / OnSetText.
Steps to reproduce:
The new function should work like this:
IF Assigned(TDBMemo.OnGetText) Then
Use TDBMemo.OnGetText
ELSE IF Assigned(DalaLink.Field.OnGetText) Then
Use DalaLink.Field.OnGetText
ELSE
USE DalaLink.Field.AsString
Additional information:
I have make the changes ready from the TDBMemo Sources, please load it into the Lazarus sources.
If the new events TDBMemo.OnGetText/OnSetText are not used, the TDBMemo works the same as before.
Thx for help to solve my big problem where is coming in with Lazarus V2
Mantis conversion info:
- Mantis ID: 35037
- Platform: Any
- Version: 2.1 (SVN)
- Monitored by: » mmvisual (Markus Müller), » @sstvmaster (sstvmaster)