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

Как сделать некоторые Rows(или ячейки)в StringGrid другим цветом?   Найти похожие ветки 

 
TALLA_   (2003-05-12 16:15) [0]

Как сделать некоторые Rows (или ячейки) в StringGrid другим цветом?


 
Bug   (2003-05-12 16:26) [1]

Событие OnDrawCell...


 
MalkoLinge ©   (2003-05-12 16:30) [2]

type
TDrawCellEvent = procedure (Sender: TObject; ACol, ARow: Longint; Rect: TRect; State: TGridDrawState) of object;
property OnDrawCell: TDrawCellEvent;

Description

Write an OnDrawCell event handler to draw the contents of all the cells in the grid. Draw on the cell using the methods of the Canvas property. The Rect parameter indicates the location of the cell on the canvas. The Col and Row parameters indicate the column and row indexes of the cell that should be drawn. The State parameter indicates whether the cell has input focus, whether the cell is selected, and whether the cell is a fixed (nonscrolling) cell.

If the OnDrawCell event handler is not assigned, all cells in the draw grid will appear empty. If the DefaultDrawing property is True, the draw grid paints the background color of the cell before the OnDrawCell event, and draws a focus rectangle around the selected cell after the OnDrawCell event handler finishes drawing the contents of the cell. If the DefaultDrawing property is False, the OnDrawCell event handler should paint the background of the cell and provide all visual indication of selection and focus.


 
TALLA_   (2003-05-12 16:53) [3]

Пасиба


 
ghg ©   (2003-05-12 17:45) [4]

http://delphimaster.net/view/1-1052734934/



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

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



Память: 0.45 MB
Время: 0.01 c
3-70098
Sirus
2003-04-29 17:53
2003.05.22
Как переташить базу из Access в Interbase???


3-70097
Deus
2003-04-28 19:28
2003.05.22
Выбор компонента


3-70090
filin
2003-05-02 23:16
2003.05.22
Двойной клик на строке DBgrid. Номер строки в датасете???


3-70177
jonymoto
2003-05-02 11:02
2003.05.22
Как запретить ввод руских букв в таблицу


3-70116
Silver_
2003-04-25 16:40
2003.05.22
SQL - нарастающий итог




   Наверх