View Issue Details

IDProjectCategoryView StatusLast Update
0002401JEDI VCL00 JVCL Componentspublic2004-12-20 06:42
Reportercab-dkAssigned To 
PrioritynormalSeverityminorReproducibilityalways
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;
begin
  Result := -1;
  if FShowGlyphs and Assigned(Field) then
  begin
    case Field.DataType of
      ftBytes, ftVarBytes, ftBlob:
        Result := Ord(gpBlob);
      ftGraphic:
        Result := Ord(gpPicture);
      ftTypedBinary:
        Result := Ord(gpBlob);
      ftParadoxOle, ftDBaseOle:
        Result := Ord(gpOle);
      ftCursor:
        Result := Ord(gpData);
      ftReference, ftDataSet:
        Result := Ord(gpData);
      ftMemo, ftFmtMemo, ftOraClob: ******* ftMemo inserted here *****
        Result := Ord(gpMemo);
      ftOraBlob:
        Result := Ord(gpBlob);
      ftBoolean:
        if not Field.IsNull then
          if Field.AsBoolean then
            Result := Ord(gpChecked)
          else
            Result := Ord(gpUnChecked);
    end;
  end;
end;
TagsNo tags attached.

Activities

user72

2004-12-19 03:42

  ~0005926

Fixed in CVS

obones

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