تبليغاتX
مرکز تخصصی دلفی - نمایش یک Progressbar در Statusbar

مرکز تخصصی دلفی

این وبلاگ توسط کم سن ترین برنامه نویس ایران مدیریت می «شد»

نمایش یک Progressbar در Statusbar

قطعا با این نوع نمایش در نرم افزارها آشنا شده اید.(خط پر شونده در نوار وضعیت)

type
  
THackControl = class(TControl);

procedure TfrmWebsite.FormCreate(Sender: TObject);
var
  
PanelRect: TRect;
begin
  
// Place progressbar on the statusbar
  
THackControl(ProgressBar1).SetParent(StatusBar1);
  
// Retreive the rectancle of the statuspanel (in my case the second)
  
SendMessage(StatusBar1.Handle, SB_GETRECT, 1, Integer(@PanelRect));
  
// Position the progressbar over the panel on the statusbar
  
with PanelRect 
do
    
ProgressBar1.SetBounds(Left, Top, Right - Left, Bottom - Top);
end;

+ نوشته شده در  دوشنبه شانزدهم مرداد 1385ساعت 16:41  توسط کوشا نخعی  |