比如说m3后的3在Dbgrid中怎样实现上标,就像在Word中那样。

解决方案 »

  1.   

    很遗憾,gbk里面有 ㎡,但是没有 m³,这个要unicode 才有,但是vcl对unicode支持的很差,除非你自己在dbgrid里面画。
      

  2.   

    Bitmap.LoadFromResourceName(HInstance, 'm3');
    Bitmap := TBitmap.Create;
    Bitmap.LoadFromResourceName(HInstance, 'm3');
    try  
      Bitmap.Transparent := True;
      GridView.Canvas.Draw(rect.Left + x, rect.Top + y, Bitmap);
    finally
      Bitmap.free;
    end;其中Bitmap是 ㎡ 图片,x, y 是距离单元格left,top 的坐标