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

StringGrid, DrawGrid - кто-нибудь обьединял ячейки?   Найти похожие ветки 

 
danilka   (2002-10-28 11:45) [0]

Кто нибудь обьединял несколько ячеек StringGrid или DrawGrid в одну?


 
Кулюкин Олег ©   (2002-10-28 11:47) [1]

procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
Rect: TRect; State: TGridDrawState);
var
i, x, y: Integer;
begin
if (gdFixed in State) or (ARow > 1) then
begin

end
else
with Sender as TStringGrid do
begin
if aCol < ColCount - 1 then
Rect.Right := Rect.Right + GridlineWidth;
y := Rect.Top + 2;
x := Rect.Left + 2;
for i:= 1 to aCol - 1 do
x := x - ColWidths[i] - GridlineWidth;
Canvas.FillRect( Rect );
Canvas.TextOut( x, y, Cells[1, 1] );
end;
end;



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

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



Память: 0.44 MB
Время: 0.012 c
14-21759
Undert
2002-10-14 19:41
2002.11.07
Кто может посоветовать ....


3-21389
b-Ars
2002-10-15 15:49
2002.11.07
Чем обусловлено появление временных файлов?


3-21447
Youri
2002-10-21 11:09
2002.11.07
Ищу в базе!


7-21831
МИФИст
2002-09-06 00:55
2002.11.07
Быстрый поиск слов в тексте...


14-21754
Стас
2002-10-18 12:37
2002.11.07
Лунный календарь




   Наверх