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

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

← →
Sheva ©   (2002-09-10 12:35) [0]

Есть такой код:

procedure TOpenForm.RxDBGrid1DrawColumnCell(Sender: TObject;
const Rect: TRect; DataCol: Integer; Column: TColumn;
State: TGridDrawState);
var
ARect: TRect;
begin
if gdselected in state then
with RxDBGrid1 do
begin
//if TempContractQuery.FieldByName("SellOrBuy").AsInteger=1
//then
//begin
CopyRect(ARect, Rect);
Canvas.Brush.Color:= clred;
Canvas.Font.Color:= clBlack;
Canvas.FillRect(Rect);
//end;
end;
end;

При этом нужная строка закрашивается в красный цвет.

Вопрос: как вывести текст поверх Rect-а, а то вижу только красную строку.
Спасибо.


← →
Игорь Шевченко ©   (2002-09-10 13:10) [1]

Вставить строку
DefaultDrawColumnCell(Rect,DataCol,Column,State);
после FillRect



← →
Sheva ©   (2002-09-10 13:15) [2]

Огромное спасибо. Все заработало.



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

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



Память: 0.45 MB
Время: 0.012 c
1-73676
GGWIN
2002-09-10 18:41
2002.09.23
TStringList вложенный в TStringList


1-73687
kay
2002-09-11 04:42
2002.09.23
Panel


14-73856
spROOT13
2002-08-26 21:19
2002.09.23
ИНФА О ДЕЛФИ


3-73571
bib
2002-09-02 18:49
2002.09.23
Помогите?


14-73881
VictorT
2002-08-28 17:54
2002.09.23
опять про *.bat файлы




   Наверх