View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002401 | JEDI VCL | 00 JVCL Components | public | 2004-12-19 01:23 | 2004-12-20 06:42 |
Reporter | cab-dk | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 3.00 BETA 2 | ||||
Target Version | Fixed in Version | 3.00 RC 1 | |||
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; 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; | ||||
Tags | No tags attached. | ||||
|
Fixed in CVS |
|
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. |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-12-19 01:23 | cab-dk | New Issue | |
2004-12-19 03:42 |
|
Status | new => resolved |
2004-12-19 03:42 |
|
Resolution | open => fixed |
2004-12-19 03:42 |
|
Assigned To | => user72 |
2004-12-19 03:42 |
|
Note Added: 0005926 | |
2004-12-19 03:42 |
|
Assigned To | user72 => |
2004-12-20 06:42 | obones | Note Added: 0005955 |