• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

insert a progressbar in a form

  • Thread starter Thread starter Shape
  • Start date Start date

Shape

Guest
Does anyone have any idea of the most convenient way to use a progressbar in a form?

I don't mean to say the usual exercise with the clock to see the bar fill up, but let go of a very long macro and keep tracked the trend... the thing in itself is banal only that I have planted on the fact that if I view an autocad form no longer performs anything of the macro until I close the form and then also the progress bar.



ideas?
 
for the moment I partially solved using the modemacro system variable that writes a string on the status line, and I make them write the progress in percentage.

But if there are suggestions for the above well come !!!

rpor66 where seiii!!!!!!!!!! !
 
Thanks planner, but the first case is definitely complex, it is to create even a class, the second is exactly what I said, to run a progressbar in a form is not a problem, click a button and he goes, my problem is that the form I only need to view the progressbar, while the counts performs another macro, but when the form is active the other ones that he is no longer.

what I would need is a form that does not block the execution of others but that is only displayed without focus to understand us.
 
Here I am! ! !
setting showmodal of a userform makes it independent from autocad, created a form with the progressbar, starts it and then controls the advancement from your macros.
I can't ask you an example because I don't have vba in the pc but as soon as I can provide.
Hi.
 
Here I am! ! !
setting showmodal of a userform makes it independent from autocad, created a form with the progressbar, starts it and then controls the advancement from your macros.
I can't ask you an example because I don't have vba in the pc but as soon as I can provide.
Hi.
I thank you, as always very kind and very prepared... Now I try if you don't match I ask you lumens otherwise it is ok so without you losing more time!!!!
 
the small program starts it by launching the macro boot1, from the form click on start, part a cycle to draw 1000 lines, clicking on cancel interrupt the cycle.

if you do not understand the operation, or you want to implement the progress bar, just make you feel.

Hi.
 

Attachments

the small program starts it by launching the macro boot1, from the form click on start, part a cycle to draw 1000 lines, clicking on cancel interrupt the cycle.

if you do not understand the operation, or you want to implement the progress bar, just make you feel.

Hi.
Thank you very much, so the trick is to insert a delay?

without delay does not access the right form?

when you have a moment try to see how it behaves to you starting 1 from start 2 that would be my case.
I know that the vba to 64bit has qlc anomaly because the form I do not find to click it until the execution ends.

Thank you very much
 
vba x64 is a cluster of bugs, while being a language lover, I abandoned it (uninstalled) in favor of vlisp.
the defect you say is definitely because of this.

bye
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top