View Issue Details

IDProjectCategoryView StatusLast Update
0001658JEDI VCL00 JVCL Componentspublic2004-04-18 23:08
Reportercab-dkAssigned Touser72 
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001658: TJvDBGrid doesn't display images correct (Memo,Blob etc)
DescriptionWhen setting the property Showglyphs to true the images isn't shown when the grid is in Editormode. Instead all the the columns witj fx. memo is shown as text [Memo] in the whole grid.
Additional InformationIhave found the offencing code near line 1978 - if removing the EditorMode test, it works okay:

if DefaultDrawing then
    I := GetImageIndex(Field);
    if (I >= 0) { and not EditorMode} then *****************
      if Field.DataType = ftBoolean then
        if Field.AsBoolean then
          I := Ord(gpChecked)
          I := Ord(gpUnChecked);
      Bmp := GetGridBitmap(TGridPicture(I));
      DrawBitmapTransparent(Canvas, (Rect.Left + Rect.Right - Bmp.Width) div 2,
        (Rect.Top + Rect.Bottom - Bmp.Height) div 2, Bmp, clOlive);
      DefaultDrawColumnCell(Rect, DataCol, Column, State);
TagsNo tags attached.



2004-04-18 23:08


Fixed in CVS

Issue History

Date Modified Username Field Change
2004-04-17 07:07 cab-dk New Issue
2004-04-18 23:08 user72 Status new => resolved
2004-04-18 23:08 user72 Resolution open => fixed
2004-04-18 23:08 user72 Assigned To => user72
2004-04-18 23:08 user72 Note Added: 0003939