[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

Filecopy with WinAPI and progress window

Luegisdorf

12/16/2005 1:49:00 PM

Hi there

I want to copy a file but It would be nice if a progress Window is
displayed. Unfortunelly winapi::filecopy does not creates a automatic
progress window. Does anybody knows how to do this?

Thank you and
best regards
Patrick
2 Answers

Santosh Kumar Paruvella

12/19/2005 6:31:00 AM

0

Hi,
Yes, you can display the custom progress bars, while some operations are
going on. Here the code, which is usefull for u, i think so.

#Macrolib.AviFiles
OperationProgress progress = new OperationProgress();
progress.setCaption("Importing Records");
progress.setAnimation(#AviFileCopy);

Progress.setText(strfmt("Copying Records: %1", invcId));

Regards,
Santosh.

"Luegisdorf" wrote:

> Hi there
>
> I want to copy a file but It would be nice if a progress Window is
> displayed. Unfortunelly winapi::filecopy does not creates a automatic
> progress window. Does anybody knows how to do this?
>
> Thank you and
> best regards
> Patrick

Luegisdorf

12/19/2005 7:19:00 AM

0

Hi Santosh

Doesn't work because while WinAPI::fileCopy(...) is executing, Axapta gets
no pocess time to animate the avi and if possible I want to set a counter.
Any other ideas?

Best regards
Patrick

"Santosh Kumar Paruvella" wrote:

> Hi,
> Yes, you can display the custom progress bars, while some operations are
> going on. Here the code, which is usefull for u, i think so.
>
> #Macrolib.AviFiles
> OperationProgress progress = new OperationProgress();
> progress.setCaption("Importing Records");
> progress.setAnimation(#AviFileCopy);
>
> Progress.setText(strfmt("Copying Records: %1", invcId));
>
> Regards,
> Santosh.
>
> "Luegisdorf" wrote:
>
> > Hi there
> >
> > I want to copy a file but It would be nice if a progress Window is
> > displayed. Unfortunelly winapi::filecopy does not creates a automatic
> > progress window. Does anybody knows how to do this?
> >
> > Thank you and
> > best regards
> > Patrick