View Issue Details

IDProjectCategoryView StatusLast Update
0002401JEDI VCL00 JVCL Componentspublic2004-12-20 06:42
Reportercab-dkAssigned To 
Status resolvedResolutionfixed 
Product Version3.00 BETA 2 
Target VersionFixed in Version3.00 RC 1 
Summary0002401: DBGrid shows rtf-codes instead of image - again
DescriptionI have reported this some time ago - and it was solved.
But not completely - it only works for ftFmtMemo not ftMemo.
Additional InformationSolution:

function TJvDBGrid.GetImageIndex(Field: TField): Integer;
  Result := -1;
  if FShowGlyphs and Assigned(Field) then
    case Field.DataType of
      ftBytes, ftVarBytes, ftBlob:
        Result := Ord(gpBlob);
        Result := Ord(gpPicture);
        Result := Ord(gpBlob);
      ftParadoxOle, ftDBaseOle:
        Result := Ord(gpOle);
        Result := Ord(gpData);
      ftReference, ftDataSet:
        Result := Ord(gpData);
      ftMemo, ftFmtMemo, ftOraClob: ******* ftMemo inserted here *****
        Result := Ord(gpMemo);
        Result := Ord(gpBlob);
        if not Field.IsNull then
          if Field.AsBoolean then
            Result := Ord(gpChecked)
            Result := Ord(gpUnChecked);
TagsNo tags attached.



2004-12-19 03:42


Fixed in CVS


2004-12-20 06:42

administrator   ~0005955

This has been changed in CVS, you MUST set the ShowMemos property to True to get the behaviour you want.

This comes out of a discussion with Fred on that very issue, as this was already asked for and refused earlier.
Here what comes out of it:

The user asking for this must understand that 99% of users will NOT want this to happen. The user is asking here for the deletion of display of memo contents. This is really annoying and was agreed for formatted memos, but cannot be for regular memos. It is not desirable to write a huge piece of code to "intelligently" decide wether or not to display the contents of the memo. Most users will want to display the actual content of the field wether its RTF, regular text, binary or other things.

Issue History

Date Modified Username Field Change
2004-12-19 01:23 cab-dk New Issue
2004-12-19 03:42 user72 Status new => resolved
2004-12-19 03:42 user72 Resolution open => fixed
2004-12-19 03:42 user72 Assigned To => user72
2004-12-19 03:42 user72 Note Added: 0005926
2004-12-19 03:42 user72 Assigned To user72 =>
2004-12-20 06:42 obones Note Added: 0005955