Главная страница
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.014 c
6-21698
AlexBeliy
2002-09-06 01:27
2002.11.07
И всё-таки, как узнать, есть ли комп в сети


14-21822
Axel
2002-10-16 18:07
2002.11.07
Стив Тейксейра, Ксавье Пачеко. Borland Delphi 5.


14-21818
blackman
2002-09-21 16:25
2002.11.07
---|Ветка была без названия|---


4-21878
pasha_golub
2002-09-24 17:43
2002.11.07
Вызов всплывающего меню по типу файла


3-21382
Cossys
2002-10-17 17:08
2002.11.07
Вот уж не знаю что делать, блин.