Command Properties

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

Command Properties

Post by docu-track99 »

Hi

I just had a quick question for you. In the example code I saw that there are some properties of commands listed such as ID, Name and State. Such as the code below will tell us if the ovaltool is enabled or disabled:

Call tPdfTemp.GetProperty("Commands[" & Chr(34) & "OvalTool" & Chr(34) & "].State", vDataOut, PXCVA_Flags.PXCVA_GetNamed)

What I was curious about is if there is a property that lets us know which of the tools the user currently has selected. Like a .Active or a .Selected property or anything like that. In fact a list of all the possible properties for commands would be really helpful.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2449
Joined: Thu Jun 30, 2005 4:11 pm

Re: Command Properties

Post by Vasyl - PDF-XChange »

The possibility for get/set active tool will be added into the next build.
It can be represented as:

// get
val as String
GetProperty("Tools.Active", val, 0);
// val contains name of active tool: "Oval", "Rect", "Arrow", etc

// set
SetProperty("Tools.Active", "TypeWriter", 0);

Note: you should be check it in updated help before usage.
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: Command Properties

Post by docu-track99 »

Thank you for your reply. Any ideas when the next build may be available?
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Command Properties

Post by John - Tracker Supp »

Should be this week/weekend if all goes to plan.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com