View Issue Details

IDProjectCategoryView StatusLast Update
0001658JEDI VCL00 JVCL Componentspublic2004-04-18 23:08
Reportercab-dkAssigned Touser72 
PrioritynormalSeverityminorReproducibilityalways
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
  begin
    I := GetImageIndex(Field);
    if (I >= 0) { and not EditorMode} then *****************
    begin
      if Field.DataType = ftBoolean then
        if Field.AsBoolean then
          I := Ord(gpChecked)
        else
          I := Ord(gpUnChecked);
      Bmp := GetGridBitmap(TGridPicture(I));
      Canvas.FillRect(Rect);
      DrawBitmapTransparent(Canvas, (Rect.Left + Rect.Right - Bmp.Width) div 2,
        (Rect.Top + Rect.Bottom - Bmp.Height) div 2, Bmp, clOlive);
    end
    else
      DefaultDrawColumnCell(Rect, DataCol, Column, State);
  end;
TagsNo tags attached.

Activities

user72

2004-04-18 23:08

  ~0003939

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