With PXCVAX.ExecuteCommand('LockAllCmdBars') it is possible to toggle that the command bars are locked or not. But how can I find if the command are locked? I only want to execute the command when the command bars are not locked.
How can I make that after opening the document, the viewer area is selected? The users have the click in that area first, before scrolling action with the arrow keys or PageUp/Down are working.
Probably you don’t even realize it can be done, but I found that it is possible to toggle the locking of the command bars. See the example. Now I would like to figure out if the command bars are locked, any ideas?
I tried the SetFocus api, but unfortunate that isn’t working. Maybe I was using it in the wrong way.
However I found a work around. If you do for example PXCVAX.ExecuteCommand('FitPage') the ActiveX control is selected. The code must be the timer event because a delay of 1 second seems to be needed. Also in the example.