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.
procedure TMyPDFControl.SetCommandState(AName: String; AHidden: Boolean);
var
ACmd: IUIX_Cmd;
begin
try
ACmd := INST_UIX.CmdManager.Cmd[INST_PXV.Str2ID(AName, False)];
if Assigned(ACmd) then
begin
ACmd.Hidden := AHidden;
end;
except
end;
end;
Did you mean to post this in one of the SDK forums? I am afraid that this goes beyond what I know to help with, but I can move the post to the appropriate forum for you and get the attention of a developer.
Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
...
PDFXEdit.PXV_Inst Inst = new PDFXEdit.PXV_Inst();
Inst.Init(...);
...
// load plugins
Inst.StartLoadingPlugins();
Inst.AddPluginFromFile("<...>\\Plugins.x64\\IdentifyForms.pvp"); // "cmd.identifyForms" command is from IdentifyForms-plugin
...
Inst.FinishLoadingPlugins();
Inst = nullptr;
...
InitComponents(); // here the pdf-control is created, and you need to call it AFTER the loading of Editor plugins,
// otherwise commands from plugins will not be added to toolbars
...
int cmdID = pdfCtl.Inst.Str2ID("cmd.identifyForms");
IUIX_Cmd cmd = uiInst.CmdManager.Cmd[cmdID];
if (cmd != null)
cmd.Hidden = true;