Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002401 [JEDI VCL] 00 JVCL Components minor always 2004-12-19 01:23 2004-12-20 06:42
Reporter cab-dk View Status public  
Assigned To
Priority normal Resolution fixed  
Status resolved   Product Version 3.00 BETA 2
Summary 0002401: DBGrid shows rtf-codes instead of image - again
Description I have reported this some time ago - and it was solved.
But not completely - it only works for ftFmtMemo not ftMemo.
Additional Information Solution:

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);
Tags No tags attached.
Attached Files

- Relationships

-  Notes
2004-12-19 03:42

Fixed in CVS
obones (administrator)
2004-12-20 06:42

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

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker