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

Как позволить в одном из полей DBGrid выводить картинки?   Найти похожие ветки 

← →
Sergy   (2002-11-28 16:16) [0]

Как позволить в одном из полей DBGrid выводить картинки?


← →
Sergy   (2002-11-28 16:49) [1]

Ни уж то никто не знает?


← →
Johnmen ©   (2002-11-28 16:51) [2]

OnDrawColumnCell
Все знают, но вопрос уже задолбал...:)


← →
Sergy   (2002-11-28 16:55) [3]

Я прекрасно знаю что, это на событие OnDrawColumnCell происходит прорисовка ячеек, но как туда картинки вместо значений вставить?
Просто я найти не смог в конфе ответ, если несложно, то подскажите топик.


← →
vopros ©   (2002-11-28 16:55) [4]

Щас ссылку на Королевство Дельфи дадут


← →
BorisUK ©   (2002-11-28 17:05) [5]

procedure TForm1.DBGrid1DrawColumnCell(Sender: TObject; const Rect: TRect;
DataCol: Integer; Column: TColumn; State: TGridDrawState);
var Im1: TBitmap;
begin
Im1:=TBitmap.Create;
if (Column.FieldName="VenueNo" ) then begin
with DBGrid1.Canvas do begin
Brush.Color:=clWhite;
FillRect(Rect);
if (Table1.FieldByName("VenueNo").Value=1)
then begin
ImageList1.GetBitmap(0,Im1);
end else begin
ImageList1.GetBitmap(2,Im1);
end;
Draw(round((Rect.Left+Rect.Right-Im1.Width)/2),Rect.Top,Im1);
end;
end;
end;



← →
Sergy   (2002-11-28 17:13) [6]

спасибо


← →
MsGuns ©   (2002-11-28 20:48) [7]

Можно еще и так

procedure TfrmPlatezka.grPlatProvDrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
begin
if (Column.FieldName="PRVNFl") and (Column.Field.AsString>"") then
dmBank.imlGrids.Draw(TDBGrid(Sender).Canvas,Rect.Left,Rect.Top,8);
end;



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

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



Память: 0.46 MB
Время: 0.014 c
7-51972
Ketmar
2002-10-13 15:39
2002.12.16
Terminal Services Client (ActiveX) - автоввод пароля - как?


3-51635
adolf_99
2002-11-28 12:51
2002.12.16
Помогите


14-51914
Avtograf
2002-11-21 22:05
2002.12.16
Чем можно просмотреть файл данных *.bdf


3-51586
nick-from
2002-11-26 23:32
2002.12.16
BOOLEAN


3-51621
DIV
2002-11-28 07:59
2002.12.16
Как избавиться от сообщения A Win32 API functuion failed




   Наверх