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

Вниз

Выделение строки в RxDBGrid другим цветом   Найти похожие ветки 

 
СержК   (2004-02-04 09:50) [0]

У важаемые мастера, подскажите можно-ли в RxDBGrid выделить строку другим цветом. Если можно, то как это сделать?


 
Ega23 ©   (2004-02-04 09:51) [1]

метод OnGetCellParams


 
СержК   (2004-02-04 09:54) [2]

Я не особый в этом спец. Если можно по-подробней.


 
Ega23 ©   (2004-02-04 09:56) [3]

procedure TFMain.rxgCardsGetCellParams(Sender: TObject; Field: TField;
AFont: TFont; var Background: TColor; Highlight: Boolean);
var
clr:Integer;

begin
clr:=AFont.Color;

if Field.FieldName="CardTypNam" then
begin
if (DMpas.RQAllCards.FieldByName("CardTypCl").AsInteger=0) then AFont.Color:=clr
else AFont.Color:=DMpas.RQAllCards.FieldByName("CardTypCl").AsInteger;
end;

if Field.FieldName="CardStatNam" then
begin
if (DMpas.RQAllCards.FieldByName("CardStatCl").AsInteger=0) then AFont.Color:=clr
else AFont.Color:=DMpas.RQAllCards.FieldByName("CardStatCl").AsInteger;
end;

if (Highlight) or (Background=clHighlight) then AFont.Color:=clWhite;
end;



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

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

Наверх




Память: 0.47 MB
Время: 0.02 c
3-38700
Pat
2004-01-25 00:37
2004.02.13
Строка подключения


1-38945
Сашок
2004-02-04 08:01
2004.02.13
Стиль Office Xp


1-38913
h0use
2004-02-04 14:08
2004.02.13
Передача параметров через SendMessage


14-39067
Думкин
2004-01-24 05:07
2004.02.13
С днем рождения! 24 января.


1-38892
_Dmitry_
2004-02-04 15:42
2004.02.13
Форма внутри потока