Link not Openning New Windows

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Link not Openning New Windows

Post by docu-track99 »

If you create a Link with an "Open a file" action and in the "Options" choose "Open In" as "New window", when you click that new link it doesn't actually open in a new window, it changes the currently open document in the PDF Control.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Link not Openning New Windows

Post by Vasyl - PDF-XChange »

Hi, docu-track99.

You may switch on the tabbed MDI mode before opening documents by:

Code: Select all

SetProperty("General.DocumentInterface", "mdi", 0);
SetProperty("View.Bars["Tab"].Visible", "true", 0);
Also see the "Reference/Named Items/Objects/Prompts/ConfirmLaunchFile" - you will be able to customize this action in run-time.

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Link not Openning New Windows

Post by docu-track99 »

We are aware of the tabbed options in the Viewer control, but at this time we are unprepared to support tabbed viewing in our product.

Is it working as intended to have links to other PDF documents set as "Open In" "New window" open in the current window?

This is something our users are doing on their own, using the control's GUI, not involving any code on our part.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Link not Openning New Windows

Post by Vasyl - PDF-XChange »

For your case (pseudocude):

Code: Select all

OnEventYourImpl(Type, Name, ...)
{
	if ((Type == PXCVA_OnDisplayPrompt) and (Name == "Prompts.ConfirmLaunchFile"))
	{
	     GetProperty("Prompts.ConfirmLaunchFile.FileName", fn, 0); // program/file which will be launched
	     GetProperty("Prompts.ConfirmLaunchFile.DefDirectory", dir, 0); // default directory
	     GetProperty("Prompts.ConfirmLaunchFile.Parameters", prm, 0); // launch parameters
	     GetProperty("Prompts.ConfirmLaunchFile.Action", op, 0); // standard launch verbs: open, print..
	     GetProperty("Prompts.ConfirmLaunchFile.UserChoice", uc, 0); // User choice: "default", "ok", "cancel"
	     // to override launch action:
	     SetProperty ("Prompts.ConfirmLaunchFile.UserChoice", "cancel", 0); // to skip default procedure
	     ShellExecute(null, op, fn, prm, dir, SW_SHOWDEFAULT); // open by system
	}
}
This the Help-description for this feature will be described in the future.

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
docu-track99
User
Posts: 518
Joined: Thu Dec 06, 2007 8:13 pm

Re: Link not Openning New Windows

Post by docu-track99 »

So what exactly is the "Open In" option used for in a Link Action?

Why give the option to open something in a "New window" if in fact it's only going to open it in the existing window anyways?