Skip to main content
January 9, 2017
Question

Change size of progress monitor

  • January 9, 2017
  • 5 replies
  • 528 views

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 has been closed for replies.

5 replies

Participant
March 10, 2022

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.

Legend
January 10, 2017

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

Legend
January 10, 2017

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

January 10, 2017

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.

Legend
January 9, 2017

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.