Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 |
Tags
- 밀면
- visualstudio 관리자권한
- C# 컬럼비교
- RichEditControl Bold
- drawgrid
- Delphi
- C# 0x8001010d
- C# Devexpress CheckListBoxControl 줄 바꿈
- C# 매크로
- 밀고
- C# WndProc
- ColumnHead MultiLine
- RichEditControl
- C# 빌드이벤트
- C# column
- devexpress grid
- mssql 문자열 합치기
- C# Devexpress
- C# linq pivot
- delphi JSON
- C#
- Row Indicator
- C# DataTable linq
- 해운대밀면
- C# Devexpress CheckListBoxControl word wrap
- 델파이
- CustomDrawColumnHeader
- C# SendMessage
- DataTable ReadOnly
- C# build
Archives
- Today
- Total
개발자의 사투
delphi DrawGrid 이미지 삽입하기 본문
TImageList 만들고 이미지등록.
그리드 DrawCell이벤트 선언
procedure aaa.grdItemsDrawCell(Sender: TObject; ACol,
ARow: Integer; Rect: TRect; State: TGridDrawState);
var
aCanvas: TCanvas;
bitmap: TBitmap;
begin
aCanvas := (Sender as TUDrawGrid).Canvas;
aCanvas.FillRect(Rect);
try
bitmap := TBitmap.Create;
imgList.GetBitmap(0, bitmap);
aCanvas.Draw(Rect.Left + (grdItems.ColWidths[ACol] div 2) - (bitmap.Width div 2), Rect.Top + 3, bitmap);
finally
bitmap.Free;
end;
'컴방 > 델파이' 카테고리의 다른 글
| Delphi JSONObject 값 가져오기 (0) | 2020.02.18 |
|---|---|
| delphi TList (0) | 2020.02.07 |
| delphi E1026 File not Found 델파이 E1026 (0) | 2020.02.03 |
| 델파이 Grid Scroll 자연스럽게 하기 (0) | 2020.01.30 |
| 델파이 BorderStyle속성 string으로 변경하기 (0) | 2020.01.23 |
Comments