首页 > 其他分享 >【dxBarCode】官方例子学习

【dxBarCode】官方例子学习

时间:2023-02-07 15:23:05浏览次数:30  
标签:TMydxBarCode end dxBarCode 官方 Paint ARect 例子 div FImageList

  TMydxBarCode = class(TdxBarCode)
  protected
    FImageList: TcxImageList;
    procedure Paint; override;
  end;


procedure TMydxBarCode.Paint;
var
  X, Y: Integer;
  ARect: TRect;
begin
  inherited;
  ARect := ViewInfo.InnerEditRect;
  X := ARect.Left + (ARect.Width div 2) - (FImageList.Width div 2);
  Y := ARect.Top + (ARect.Height div 2) - (FImageList.Height div 2);
  Canvas.DrawImage(FImageList, X, Y, 0);
end;

标签:TMydxBarCode,end,dxBarCode,官方,Paint,ARect,例子,div,FImageList
From: https://www.cnblogs.com/mxkings/p/17098525.html

相关文章