In OnShow in the ProgressBar form, do MainForm.Enabled := False.
In OnClose of ProgressBar Form, do MainForm.Enabled := True
In Progress Control in MainForm,
ProgressBar.Show
Do your processing
ProgressBar.Close
 
Dave.
-----Original Message-----
From: Eamon Reyn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 7 June 2000 11:35 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Progress bars

Hi in the application that I am working on we have a small problem with our progress bars. The problem is when we bring up our progress bar form within the application we cannot display it modally as this would require us to write a progress bar form for every process that needed one. Is there any simple way to stop the user being able to click the buttons etc on the form behind the progress bar while the progress bar is shown without using code like frmProgress.ShowModal.
 
Currently we are considering having a bProgressBarUp type variable to check against but I don't like this idea that much.
 
TIA
 
Eamon.

Reply via email to