Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.09.29;
Скачать: CL | DM;

Вниз

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

 
DelphiM ©   (2003-09-06 23:23) [0]

Подскажите пожалусто как вставить в стандартный грид чекбокс вмето поля BOOL


 
Vlad ©   (2003-09-07 02:17) [1]

OnDrawColumnCell
DrawFrameControl см. Хелп.


 
zeus   (2003-09-08 12:08) [2]

procedure TF_Main.DocListDrawColumnCell(Sender: TObject;
const GRect: TRect; DataCol: Integer; Column: TColumnEh;
State: TGridDrawState);
var
MyRect : TRect;
h: Integer;
Image : TBitmap;
begin
DocList.Canvas.FillRect(GRect);
MyRect := GRect;
MyRect.Right := MyRect.Right + 14;
MyRect.Left := GRect.Left;
Image := TBitmap.Create;
ImageList1.GetBitmap(DM.QDocListDOC_TYPE.AsInteger - 1, Image);
h := (MyRect.Bottom - MyRect.Top - DocList.Canvas.TextHeight("Y")) div 2;
Image.Transparent := True;
DocList.Canvas.Draw(MyRect.Left, MyRect.Top + h, Image);
Image.Free;
if DM.QDocListBLACK.AsString = "T" then
begin
Image := TBitmap.Create;
ImageList1.GetBitmap(4, Image);
h := (MyRect.Bottom - MyRect.Top - DocList.Canvas.TextHeight("Y")) div 2;
Image.Transparent := True;
DocList.Canvas.Draw(MyRect.Left+14, MyRect.Top + h, Image);
Image.Free;
end;
DocList.Canvas.TextOut(MyRect.Left + 29, MyRect.Top + h, DM.QDocListNAME.AsString);
end
else DocList.DefaultDrawColumnCell(GRect, DataCol, Column, State);
end;



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

Текущий архив: 2003.09.29;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.033 c
1-96187
petro
2003-09-16 11:26
2003.09.29
richedit


1-96178
drakulita
2003-09-16 11:07
2003.09.29
Форма


3-96143
SergBBS
2003-09-08 12:13
2003.09.29
FibPlus


1-96286
k_len
2003-09-17 06:39
2003.09.29
приведение типов


1-96244
Rain_km
2003-09-17 16:17
2003.09.29
mp3