progression bars

progression bars

Anonymous
Not applicable
300 Views
3 Replies
Message 1 of 4

progression bars

Anonymous
Not applicable
hi

i am trying to place a progression bar in my program, however, i am having
difficulty in showing the progression bar and having stuff run to make the
progression, it seems that i have to close the progression bar userform
before the other subs run..... please help

thanks in advance

cheers
mark
0 Likes
301 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Add "do events" to your code and the other events will continue to run.
"Mark Dubbelaar" wrote in message
news:B2F3CFA9119A4B0FBD87DEF2ACE6E51C@in.WebX.maYIadrTaRb...
> hi
>
> i am trying to place a progression bar in my program, however, i am having
> difficulty in showing the progression bar and having stuff run to make the
> progression, it seems that i have to close the progression bar userform
> before the other subs run..... please help
>
> thanks in advance
>
> cheers
> mark
>
>
0 Likes
Message 3 of 4

Anonymous
Not applicable
It seems that you put the progress bar on a UserForm and you display the
UserForm like this:
UserForm.Show.

Unfortunely, in ACAD VBA, UserForm is opend as modal form by default, hence
your program stops until the modal form is closed.

You can
1. open the UserForm as a modeless form if you use AutoCAD 2000i or later.
2. Put your operation executed by the program in the UserForm's
UserForm_Activate( ) event procedure, that is, once the progres bar is
displayed, the process starts. Then when the process finished, unload the
UserForm.

"Mark Dubbelaar" wrote in message
news:B2F3CFA9119A4B0FBD87DEF2ACE6E51C@in.WebX.maYIadrTaRb...
> hi
>
> i am trying to place a progression bar in my program, however, i am having
> difficulty in showing the progression bar and having stuff run to make the
> progression, it seems that i have to close the progression bar userform
> before the other subs run..... please help
>
> thanks in advance
>
> cheers
> mark
>
>
0 Likes
Message 4 of 4

Anonymous
Not applicable
Try this weblink

http://www.vbdesign.net/cadpages/files/pbar.htm



"Norm Yuan" wrote in message
news:C0F9F98312059A261935FFEA583AD544@in.WebX.maYIadrTaRb...
> It seems that you put the progress bar on a UserForm and you display the
> UserForm like this:
> UserForm.Show.
>
> Unfortunely, in ACAD VBA, UserForm is opend as modal form by default,
hence
> your program stops until the modal form is closed.
>
> You can
> 1. open the UserForm as a modeless form if you use AutoCAD 2000i or later.
> 2. Put your operation executed by the program in the UserForm's
> UserForm_Activate( ) event procedure, that is, once the progres bar is
> displayed, the process starts. Then when the process finished, unload the
> UserForm.
>
> "Mark Dubbelaar" wrote in message
> news:B2F3CFA9119A4B0FBD87DEF2ACE6E51C@in.WebX.maYIadrTaRb...
> > hi
> >
> > i am trying to place a progression bar in my program, however, i am
having
> > difficulty in showing the progression bar and having stuff run to make
the
> > progression, it seems that i have to close the progression bar userform
> > before the other subs run..... please help
> >
> > thanks in advance
> >
> > cheers
> > mark
> >
> >
>
>
0 Likes