IUIX_Cmd::AddShortcut2 Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(3 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_Cmd::AddShortcut2 Method}}
 
{{#customTitle:IUIX_Cmd::AddShortcut2 Method}}
{{#parentPage:PXV:IUIX_Cmd#Methods|AddShortcut2 Method|method}}
+
{{#parentPage:PXV:IUIX_Cmd#Methods|AddShortcut2|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Adds new double shortcut to the command's shortcuts list. If the current combination is already inside the commands list with the same priority then it will be replaced.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT AddShortcut2([in]                      UIX_CmdAccel*  pA1,
+
<pre class="brush:cpp;gutter:false">HRESULT AddShortcut2([in]                      UIX_CmdAccel*  stA1,
                     [in, defaultvalue(NULL)]  UIX_CmdAccel*  pA2,
+
                     [in, defaultvalue(NULL)]  UIX_CmdAccel*  stA2,
 
                     [in, defaultvalue(-1)]    LONG          nPriority);</pre>
 
                     [in, defaultvalue(-1)]    LONG          nPriority);</pre>
  
 
== Parameters ==
 
== Parameters ==
;pA1
+
;stA1
:[in]  Pointer to [[PXV:UIX_CmdAccel|UIX_CmdAccel]].
+
:[in]  Pointer to [[PXV:UIX_CmdAccel|UIX_CmdAccel]] containing the key combination that should be pressed first.
;pA2
+
;stA2
:[in, defaultvalue(NULL)]  Pointer to [[PXV:UIX_CmdAccel|UIX_CmdAccel]].
+
:[in, defaultvalue(NULL)]  Pointer to [[PXV:UIX_CmdAccel|UIX_CmdAccel]] containing the key combination that shold be pressed after the first one.
 
;nPriority
 
;nPriority
:[in, defaultvalue(-1)]  Value of LONG.
+
:[in, defaultvalue(-1)]  Value of LONG containing the command's priority that acts as the index in the shortcuts list.
  
 
== Return Value ==
 
== Return Value ==
Line 25: Line 24:
  
 
== See Also ==
 
== See Also ==
[[PXV:IUIX_Cmd|IUIX_Cmd]].
+
[[PXV:IUIX_Cmd|IUIX_Cmd]]

Latest revision as of 01:41, 24 March 2016


Adds new double shortcut to the command's shortcuts list. If the current combination is already inside the commands list with the same priority then it will be replaced.

Syntax

HRESULT AddShortcut2([in]                      UIX_CmdAccel*  stA1,
                     [in, defaultvalue(NULL)]  UIX_CmdAccel*  stA2,
                     [in, defaultvalue(-1)]    LONG           nPriority);

Parameters

stA1
[in] Pointer to UIX_CmdAccel containing the key combination that should be pressed first.
stA2
[in, defaultvalue(NULL)] Pointer to UIX_CmdAccel containing the key combination that shold be pressed after the first one.
nPriority
[in, defaultvalue(-1)] Value of LONG containing the command's priority that acts as the index in the shortcuts list.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IUIX_Cmd