Главная страница
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
1-21550
^Sanya
2002-10-26 23:04
2002.11.07
Проблема с InstallShield:


14-21789
lutikh
2002-10-18 21:18
2002.11.07
Database Desktop по-русски


14-21781
TankMan
2002-10-18 22:39
2002.11.07
Icon-ка левого exe в SpeedButton


1-21503
mikl2002
2002-10-29 07:26
2002.11.07
Переименование IxmlNode


1-21569
Vile_denis
2002-10-29 16:48
2002.11.07
!!!! Срочно нужна помощь спецов !!!!