Главная страница
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.012 c
8-21694
MYurik
2002-07-08 16:39
2002.11.07
3DS&GLScene


1-21504
Yonic
2002-10-28 15:47
2002.11.07
WebBrowser


1-21483
Leny
2002-10-28 13:50
2002.11.07
в SysTray


3-21387
arkara
2002-10-17 13:39
2002.11.07
Компоненты InfoPower


1-21535
Maksim_
2002-10-29 13:12
2002.11.07
Kak ne nazimaja Mainmenu pokazatj ego soderzimoe?