Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.11.07;
Скачать: 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 вся ветка

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

Наверх




Память: 0.46 MB
Время: 0.02 c
1-21548
^Sanya
2002-10-28 17:22
2002.11.07
private vs implementation...


1-21685
Andrew2
2002-10-28 11:04
2002.11.07
функция в dll


1-21570
Юрий К
2002-10-30 01:14
2002.11.07
Доступ к свойствам компонента по индексу


3-21369
S
2002-10-17 13:57
2002.11.07
Блокировка таблицы!


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