How to get the value KeepToolSelected

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

reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

How to get the value KeepToolSelected

Post by reinierkops »

I can toggle the KeepToolSelected, but how can I call the viewer what the value is of KeepToolSelected
And when KeepToolSelected is off, it automaticly switches to the hand tool, but i want that it switch to the textselector tools. How can i perform this?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to get the value KeepToolSelected

Post by Vasyl - PDF-XChange »

Possibility for get/set value of 'KeepSelected' property for each commenting tool will be added (and described in the ActiveX SDK Help) into the next build.

It will be represented as:
GetProperty("Tools.Line.KeepSelected", val, 0);
SetProperty("Tools.TypeWriter.KeepSelected", val, 0);

and possibility for get/set default commenting tool as:
GetProperty("Tools.DefaultTool", val, 0);
SetProperty("Tools.DefaultTool", "Select", 0); // text selector tool
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.
reinierkops
User
Posts: 93
Joined: Mon Jul 07, 2008 8:41 am

Re: How to get the value KeepToolSelected

Post by reinierkops »

Is it possible that when KeepToolSelected is set to false, that the previous selected tool will be selected, instead of the handtool, what now is?

Or do you have another option?
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: How to get the value KeepToolSelected

Post by Vasyl - PDF-XChange »

You can use for this:
GetProperty("Tools.Line.KeepSelected", val, 0);
GetProperty("Tools.Arrow.KeepSelected", val, 0);
GetProperty("Tools.Rect.KeepSelected", val, 0);
GetProperty("Tools.Oval.KeepSelected", val, 0);
...
For more information see our AX help, section "Reference\Named Items\Named Objects\Tools".
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.
anti_g
User
Posts: 22
Joined: Thu Apr 02, 2009 9:55 am

Re: How to get the value KeepToolSelected

Post by anti_g »

SetProperty("Tools.DefaultTool", "Select", 0);

does not work in the new release either.
anti_g
User
Posts: 22
Joined: Thu Apr 02, 2009 9:55 am

Re: How to get the value KeepToolSelected

Post by anti_g »

I mean SetProperty("Tools.Default", "Select", 0); , not "DefaultTool"

After that the default tool is apparently set, you can see it by getting it with GetProperty, but despite of it the hand is shown and not the select tool.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: How to get the value KeepToolSelected

Post by Corwin - Tracker Sup »

anti_g wrote:SetProperty("Tools.Default", "Select", 0);
Sorry, but this property is not supported yet.