mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
LCL, dbgrid: implements dgDisplayMemoText option for displaying the memo content instead of the text (memo)
git-svn-id: trunk@56463 -
This commit is contained in:
parent
d5909028ff
commit
32ac63532a
@ -76,7 +76,8 @@ type
|
||||
dgCellEllipsis, // show ... if cell text is truncated
|
||||
dgRowHighlight, // Highlight current row
|
||||
dgThumbTracking,
|
||||
dgDblClickAutoSize // dblclicking columns borders (on hdrs) resize col.
|
||||
dgDblClickAutoSize, // dblclicking columns borders (on hdrs) resize col.
|
||||
dgDisplayMemoText // show memo content instead of (memo) for ftMemo fields
|
||||
);
|
||||
TDbGridOptions = set of TDbGridOption;
|
||||
|
||||
@ -2119,7 +2120,10 @@ begin
|
||||
{$ifdef dbgGridPaint}
|
||||
DbgOut(' Field=%s',[F.FieldName]);
|
||||
{$endif}
|
||||
S := F.DisplayText;
|
||||
if (F.DataType=ftMemo) and (dgDisplayMemoText in Options) then
|
||||
S := F.AsString
|
||||
else
|
||||
S := F.DisplayText;
|
||||
end else
|
||||
S := '';
|
||||
{$ifdef dbggridpaint}
|
||||
|
Loading…
Reference in New Issue
Block a user