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:
Issue with cmd.document.resizePages check for Offline SOLVED
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.
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.
-
- User
- Posts: 211
- Joined: Sun Aug 05, 2012 5:20 pm
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Issue with cmd.document.resizePages check for Offline SOLVED
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
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
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ