830
社区成员
发帖
与我相关
我的任务
分享
PageControl1.OwnerDraw := True;//设置完这个后,标签的文字就看不到了,需要自己画上去
procedure TForm1.PageControl1DrawTab(Control: TCustomTabControl;
TabIndex: Integer; const Rect: TRect; Active: Boolean);
begin
Control.Canvas.Brush.Style := bsSolid;
Control.Canvas.Brush.Color := clRed;
Control.Canvas.FillRect(Rect);
end;