Tobyas Ripper
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Код: var ProgressLabel: TLabel; [qoute]procedure ExtLog(); begin SaveStringToFile(ExpandConstant('{app}\setup.log'), #13#10 + GetDateTimeString('dd/mm/yyyy hh:nn:ss', '-', ':') + ' - ' + ExpandConstant(CurrentFileName), True); with WizardForm.ProgressGauge do ProgressLabel.Caption:= IntToStr((Position-Min)/((Max - Min)/100)) + '%'; end; procedure InitializeWizard(); begin ProgressLabel := TLabel.Create(WizardForm); with WizardForm.ProgressGauge do begin ProgressLabel.Top := Top + Height + ScaleY(8); ProgressLabel.Left:= Left + Width/2 - ScaleX(8); ProgressLabel.Caption := 'TLabel'; ProgressLabel.AutoSize := True; ProgressLabel.Parent := WizardForm.InstallingPage; end; end; | Ребят всем привет, вопрос такого плана: в файле setup.log что-то требуется прописывать? Потому как тупой копипаст кода на отображение процентов дает ошибку. |