cmd.view.loupe

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
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

cmd.view.loupe

Post by jusWest »

Hello!

I am trying to open the Loupe window by executing the following command

Code: Select all

CommandExec("cmd.view.loupe");

CommandExec looks like this:

        public void CommandExec(string command, bool hide = false)
        {
            try
            {
                var uiInst = (IUIX_Inst)_Inst.GetExtension("UIX");
                IUIX_Cmd cmd = uiInst.CmdManager.Cmds.Find(command);
                if (cmd == null)
                    return;

                _Inst.ExecUICmd2(cmd.ID);
            }
            catch (Exception ex)
            {
                AppLogger.Error("CommandExec - " + ex.Message);
            }
        }
This does not work, the Loupe window does no appear.

cmd.view.loupe does not work in the fulldemo either.

Do I need to do something else to open the loupe window?



/Ronny
Last edited by jusWest on Thu Sep 05, 2019 11:42 am, edited 1 time in total.
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Re: cmd.view.loupe

Post by jusWest »

Actually I cant get theese two commands to work either:

Code: Select all

       cmd.zoom.level.zoomIn
       cmd.zoom.level.zoomOut
                    
Nothing happens when I run those commands. Btw. they work in the fulldemo!

The commands:

Code: Select all

cmd.zoom.level.fitVisible
cmd.zoom.level.fitWidth
cmd.zoom.level.fitPage
cmd.zoom.level.actual
Works as they should

/ronny
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: cmd.view.loupe

Post by Sasha - Tracker Dev Team »

Hello Ronny,

It's better to look commands directly from the Editor and use them:
image.png
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jusWest
User
Posts: 150
Joined: Fri Aug 24, 2018 8:26 am

Re: cmd.view.loupe

Post by jusWest »

thank you!

I really did know I should, but had "forgot it" :D
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: cmd.view.loupe

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply