TheForestMan
IS-IT--Management
Hello!
I have a little problem with an application where I am using a separate form to display a progress bar. The problem is that when I call the progress bar form, it does not show up completely.
Here some code example I use :
to show the form:
procedure ShowProgressBar(visible : boolean);
begin
if visible then ProgressBarForm.show
else ProgressBarForm.hide;
end;
where I call the ShowProgressBar procedure:
procedure DoSomeStuff;
begin
ShowProgressBar(true);
// some code here
ShowProgressBar(false);
end;
It seems the progressbar form does not show up completely until the calling procedure is completely run.
I tried using showmodal instead but it make sense it then waits for the user to do something and the calling procedure does not execute until so.
Note: forms are all auto-created when running the application.
Does anyone knows what is wrong with this code?
Thanks in advance for your help,
Cheers
TheForestMan
I have a little problem with an application where I am using a separate form to display a progress bar. The problem is that when I call the progress bar form, it does not show up completely.
Here some code example I use :
to show the form:
procedure ShowProgressBar(visible : boolean);
begin
if visible then ProgressBarForm.show
else ProgressBarForm.hide;
end;
where I call the ShowProgressBar procedure:
procedure DoSomeStuff;
begin
ShowProgressBar(true);
// some code here
ShowProgressBar(false);
end;
It seems the progressbar form does not show up completely until the calling procedure is completely run.
I tried using showmodal instead but it make sense it then waits for the user to do something and the calling procedure does not execute until so.
Note: forms are all auto-created when running the application.
Does anyone knows what is wrong with this code?
Thanks in advance for your help,
Cheers
TheForestMan