mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-20 13:59:15 +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
|
dgCellEllipsis, // show ... if cell text is truncated
|
||||||
dgRowHighlight, // Highlight current row
|
dgRowHighlight, // Highlight current row
|
||||||
dgThumbTracking,
|
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;
|
TDbGridOptions = set of TDbGridOption;
|
||||||
|
|
||||||
@ -2119,7 +2120,10 @@ begin
|
|||||||
{$ifdef dbgGridPaint}
|
{$ifdef dbgGridPaint}
|
||||||
DbgOut(' Field=%s',[F.FieldName]);
|
DbgOut(' Field=%s',[F.FieldName]);
|
||||||
{$endif}
|
{$endif}
|
||||||
S := F.DisplayText;
|
if (F.DataType=ftMemo) and (dgDisplayMemoText in Options) then
|
||||||
|
S := F.AsString
|
||||||
|
else
|
||||||
|
S := F.DisplayText;
|
||||||
end else
|
end else
|
||||||
S := '';
|
S := '';
|
||||||
{$ifdef dbggridpaint}
|
{$ifdef dbggridpaint}
|
||||||
|
Loading…
Reference in New Issue
Block a user