Skip to main content
Jan 9, 2017 4:59 AM UTC
Question

Change size of progress monitor

Hi all, I am trying to wite code that will show process monitor. This is sample code in Abobat core API Reference. static ProgressMonitor progMon; static void* monClientData; progMon = AVAppGetDocProgressMonitor(&monClientData); if (progMon) { ASText str = ASTextNew (); ASTextSetEncoded (str, "Please wait until the end of process!", ASScriptToHostEncoding(kASRomanScript)); progMon->setText(str, monClientData); //progMon->size = sizeof(AVOpenSaveDialogParamsRec)*10; if (progMon->setDuration){ progMon->setDuration(100, monClientData); } if (progMon->setCurrValue){ progMon->setCurrValue(50, monClientData); } if (progMon->beginOperation){ progMon->beginOperation(monClientData); } } it is working fine. It displays a dialog in the lower right corner of the page pdf. Now I want to change the size and location of its display center page of documents. How can I accomplish this? Im using visual c++

This topic is closed to new replies. Start a new post to keep the conversation going.

5 replies

Participant
Mar 10, 2022 7:09 AM UTC

What is the best way to make my own Progress [Cloudplay ] Monitor object? In the Acrobat DC SDK documentation, I can't find any sample code.
Please accept my sincere gratitude.

Translate
Legend
Jan 10, 2017 7:20 AM UTC

But check the SDK for methods you are required to use to register and unregister playform dialogs.

Translate
Legend
Jan 10, 2017 7:19 AM UTC

Just use the platform API to create some kind of visual object. Perhaps a modeless dialog. Very little connection to the Acrobat SDK.

Translate
Jan 10, 2017 2:48 AM UTC

Hi MVP, Thanks for the reply,

Could you please suggest to me:

How I can create my own ProgressMonitor object?

I cannot find a sample code in Acrobat DC SDK Documentation.

thanks in advance.

Translate
Legend
Jan 9, 2017 9:18 AM UTC

You have no control over the appearance and location of the default progress monitor. Adobe regularly redesign it: sometimes a dialog, sometimes an overlay on a status bar, etc. But you can create your own ProgressMonitor object and pass It to almost every method that shows one.

Translate