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.
To be clear, I do not want to know if the Bookmarks pane is visible.
I have made a custom command in the View menu. I want to know what the state of that command item is.
The bookmarks command will be checked when the bookmarks pane is turned on, or unchecked otherwise.
Only those commands that will open a new pane will have a check mark next to them. Others will just execute the relevant command associated with them (e.g. open a new window for cropping a page in the case of Document -> Crop pages).
So there is no "checked" state really for menu commands - this check mark is just a visual indicator illustrating whether the respective pane is already on or off.
Or is it a different state that you want to check?
Thanks for the clarification.
I've checked with a colleague from the dev team - and it seems like we will need to pass it along to a colleague from the Canadian office.
I have just done so - and we will post back here as soon as we have further news!
Basically what you will need to do is to call the OnGetCmdState of the Command Handler of the needed Command.
In your case the Owner would be the IPXV_MainView:
IUIX_Cmd cmd = _UIInst.CmdManager.Cmds.Find2(cmdId);
IUIX_CmdItem item = null; //No idea what this should be
IUIX_Obj owner = (IUIX_Obj)pdfCtl.Frame.View;
int state = 0;
cmd.Handler.OnGetItemState(cmd, item, owner, state);