Author Topic: PJSR wish list browseScriptDocumentation()  (Read 3910 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
PJSR wish list browseScriptDocumentation()
« on: 2014 December 18 11:11:20 »
Hi Juan,

Win 7 1123.

I would like to code the following to provide more information if the pidoc is not installed. (Similar to what you wrote previously).

Currently browseScriptDocumentation() returns true and the browser opens with a default missing message.

I would an option to force browseScriptDocumentation() to return false when missing.

Thanks,
Mike

Code: [Select]
   this.browseDocumentationButton.onClick = function () {
      if (!Dialog.browseScriptDocumentation(TITLE)) {
         (new MessageBox(
            "<p>Documentation has not been installed.</p>" +

            "<p>MORE INFORMATION HERE.</p>",

            TITLE + "." + VERSION,
            StdIcon_Warning,
            StdButton_Ok
         )).execute();
      }
   };