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

Как добавить картинку в DBGrid?   Найти похожие ветки 

← →
Wasya   (2002-08-07 04:13) [0]

Помогите, пожалуйста!
Не могу добавить иконку в строку DBGrid"а...


← →
fnatali ©   (2002-08-07 06:53) [1]

Обрабатывать событие OnDrawColumnCell и рисовать на канве


← →
relict   (2002-08-07 08:13) [2]

используй DBGrid из библиотеки Ehlib
http://www.farpost.ru/personal/dmitryb/RUS/


← →
Кулюкин Олег ©   (2002-08-07 08:51) [3]

http://www.delphikingdom.com/helloworld/dbgridcolor.htm
Статья на тему.
Поясняет ответ fnatali © (07.08.02 06:53)


← →
turusov   (2002-08-07 10:02) [4]

procedure TMainForm.MainGridDrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
var
TempItem: integer;
with MainGrid.Canvas do begin
if (NOT(gdFocused in State)) then begin
if Column.FieldName = "Class" then begin
FillRect(Rect);
case TableForm.tblMain.FieldByName(flnMainClass).AsInteger of
movesPr: TempItem:= 1;
movesPer: TempItem:= 2;
movesUv: TempItem:= 3;
else
TempItem:= -1;
end;
ImageList16.Draw(MainGrid.Canvas,Rect.Left,Rect.Top,TempItem);
TextOut(Rect.Left+18, Rect.Top+2, Column.Field.Text);
end;//if
end;{with}
end;


← →
MCFire ©   (2002-08-07 18:05) [5]

Крутая статейка про DB-grid
http://gratis97.chat.ru/hobby/delphi/122600-1/txt122600-1.htm



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

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



Память: 0.44 MB
Время: 0.01 c
1-95858
Sour
2002-08-17 20:54
2002.08.29
Delphi vs C++Bulder


1-95791
SetupOS
2002-08-19 21:21
2002.08.29
Как программно прокрутить RichEdit вверх, вниз…


1-95869
stany
2002-08-18 01:59
2002.08.29
Как сделать чтобы форма приняла форму любого битмапа


1-95842
Balu
2002-08-15 21:28
2002.08.29
MDI Form в DLL ошибка Can not assign TFont to TFont при OnHint


4-96011
MVova
2002-06-25 16:30
2002.08.29
Как растянуть текст?




   Наверх