Вниз
Скачать: CL | DM;

DrawGrid   Найти похожие ветки 

 
Stdnet   (2003-02-20 16:32) [0]

Здравствуйте мастра! Подскаже как в DrawGrid при нажатии на пустую ячейку в ней появлялся какойто битмап


 
Song ©   (2003-02-20 20:57) [1]

TDrawGrid.onDrawCell


 
Stdnet   (2003-02-20 23:52) [2]

А картинку как вставлять?


 
IceMan_T   (2003-03-09 12:24) [3]

>А картинку как вставлять?

Обрабатываешь сообщение onDrawCell:

var
Bmp:TBitMap;
BMPRect:TRect;
Offset:integer;
begin
with Canvas do
begin
FillRect(Rect);
Bmp:=TBitMap.Create;
BMP.Assign(LoadFromLib(BmpName));
if Bmp <> nil then
begin
BMP.Transparent:=true;
BMPRect:=Bounds(Rect.Left + 2, Rect.Top,
Rect.Bottom-Rect.Top, Rect.Bottom-Rect.Top);
StretchDraw(BMPRect, Bmp);
Offset := Rect.Bottom-Rect.Top + 6;
end;
TextOut(Rect.Left+Offset,Rect.Top,Text);
Bmp.Free;
end;
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.011 c
1-76957
rrer
2003-04-12 13:53
2003.04.24
Проблема с TreeView 2


6-77071
Lamer XP
2003-02-25 18:03
2003.04.24
Sockets


1-76919
Demon_MHM
2003-04-14 18:50
2003.04.24
Проверка заполненности полей ввода


3-76813
SaperXL
2003-04-06 19:35
2003.04.24
Связанные таблицы


1-76896
GeorgeM
2003-04-14 17:24
2003.04.24
Ruler




   Наверх