Вниз
Скачать: 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.016 c
1-76956
Василий Петрович
2003-04-12 18:25
2003.04.24
текст эдитов


3-76788
Andrey V.
2003-04-03 06:40
2003.04.24
Appolo / Halycon / Titan / ...


14-77118
Карлсон
2003-04-06 20:16
2003.04.24
тормоза


3-76771
Clickmaker
2003-04-04 13:09
2003.04.24
deadlock на MS SQL 2000


3-76850
Sliski Slimak
2003-04-07 18:19
2003.04.24
Кладр




   Наверх