Issue with cmd.document.resizePages check for Offline  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Issue with cmd.document.resizePages check for Offline

Post by prime clinical systems »

Hi, found that when this command is offline, this statement still returns false, unless I have the wrong command, but don't think so, as even with this disabled using the ExecUI for this command it shows the dialog box, but won't let you resize which is correct, but I want to use this as a flag to prohibit the resize pages operation, thanks
frmPdfEditNew.p_uiInst.CmdManager.cmd(frmPdfEditNew.PDF.Inst.Str2ID("cmd.document.resizePages")).Offline
see image below:
Capture.JPG
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Issue with cmd.document.resizePages check for Offline  SOLVED

Post by Sasha - Tracker Dev Team »

Hello Clifford,

The disabled state that you see is a IUIX_CmdItem disabled state not an IUIX_Cmd command Offline property. The State of the IUIX_CmdItem differs from the context that it's being used at - for example take the cmd.delete command - if you have a selection in a Thumbnails View for example - it will be enabled though for example in the Bookmarks View that currently has no selection it would be disabled.
You can use this method to see whether the operation is permitted:
https://sdkhelp.pdf-xchange.com/vie ... Permission

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply