属性设置:StatusBar.Panel[0].Text='1' Style=psOwnerDraw
StatusBar.Panel[1].Text='2' Style=psOwnerDraw
代码:我只是写字,你可改一下
procedure TForm1.StatusBar1DrawPanel(StatusBar: TStatusBar;
Panel: TStatusPanel; const Rect: TRect);
begin
if Panel.Text='1' then
begin
StatusBar.Canvas.TextOut(3,4,'Panel1');
end
else
begin
StatusBar.Canvas.TextOut(Panel.Width+3,3,'Panel2');
end;
end;
----------
给20分!!