procedure TForm1.FormCreate(Sender: TObject);
begin
TabControl1.TabHeight:=40;
TabControl1.OwnerDraw:=true;
end;
procedure TForm1.TabControl1DrawTab(Control: TCustomTabControl;
TabIndex: Integer; const Rect: TRect; Active: Boolean);
var
bmp:tbitmap;
str:string;
sw,sh:integer;
begin
Control.Canvas.FillRect(rect);
bmp:=tbitmap.Create;
imagelist1.GetBitmap(tabindex,bmp);
Control.Canvas.Draw(rect.Left+(rect.Right-rect.Left-bmp.Width) div 2,rect.Top+2,bmp);
str:=TTabControl(Control).Tabs[tabindex];
sw:=Control.Canvas.TextWidth(str);
sh:=Control.Canvas.TextHeight(str);
Control.Canvas.TextOut(rect.Left+(rect.Right-rect.Left-sw) div 2,bmp.Height+rect.Top+6,str);
bmp.free;
end;