Distinguish between workspace and toolbar on a mouse click?

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

DanielG
User
Posts: 34
Joined: Wed Oct 09, 2013 5:58 pm

Distinguish between workspace and toolbar on a mouse click?

Post by DanielG »

Hello,

I would like to know when the user is clicking in just the workspace (the gray area where they can double-click to open a document) and the PDF-XChange toolbar. Currenly, I am in the OnEvent method and making sure the type is PXCVA_OnNamedNotify. I am further getting the mouse target name to figure out where the user has clicked (Pages, Workspace, etc.):

GetProperty('Notifications.Mouse.TargetName', dataOut, 0);

I have noticed that clicking in the gray area and clicking on the PDF-XChange toolbar results in the same target name: Workspace.

Is there a way to distinguish between the workspace and the toolbar?

Thanks,
Daniel
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Distinguish between workspace and toolbar on a mouse cli

Post by Vasyl - PDF-XChange »

Sorry, but no way for this currently.
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.
DanielG
User
Posts: 34
Joined: Wed Oct 09, 2013 5:58 pm

Re: Distinguish between workspace and toolbar on a mouse cli

Post by DanielG »

Thanks for looking into this issue for me. Do you know if that is something that might be added to a future release?
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Distinguish between workspace and toolbar on a mouse cli

Post by John - Tracker Supp »

Only potentially in the Editor SDK when available - it will not be added I am afraid in the Viewer SDK.
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