Difference between revisions of "RxCommand"

From Ribbon Commander Documentation
Jump to: navigation, search
(Properties)
(Events)
 
(One intermediate revision by the same user not shown)
Line 26: Line 26:
 
== Delegates ==
 
== Delegates ==
 
{{DocTableBegin | Col1Name=Delegate Name | Col2Name=Description}}
 
{{DocTableBegin | Col1Name=Delegate Name | Col2Name=Description}}
{{DocTableEntry | name=getDescription}}
 
 
{{DocTableEntry | name=getEnabled}}
 
{{DocTableEntry | name=getEnabled}}
{{DocTableEntry | name=getKeytip}}
+
{{DocTableEntry | name=onAction_repurposed}}
{{DocTableEntry | name=getLabel}}
+
{{DocTableEntry | name=getPressed}}
+
{{DocTableEntry | name=getScreentip}}
+
{{DocTableEntry | name=getSupertip}}
+
{{DocTableEntry | name=getVisible}}
+
{{DocTableEntry | name=onAction_checkbox}}
+
 
{{DocTableEnd}}
 
{{DocTableEnd}}
  
 
== Events ==
 
== Events ==
 
{{DocTableBegin | Col1Name=Event Name | Col2Name=Description}}
 
{{DocTableBegin | Col1Name=Event Name | Col2Name=Description}}
{{DocTableEntry | name=OnActionEvent_checkbox}}
+
{{DocTableEntry | name=OnActionEvent_repurposed}}
{{DocTableEntry | name=OnGetDescription}}
+
 
{{DocTableEntry | name=OnGetEnabled}}
 
{{DocTableEntry | name=OnGetEnabled}}
{{DocTableEntry | name=OnGetKeytip}}
 
{{DocTableEntry | name=OnGetLabel}}
 
{{DocTableEntry | name=OnGetPressed}}
 
{{DocTableEntry | name=OnGetScreentip}}
 
{{DocTableEntry | name=OnGetSupertip}}
 
{{DocTableEntry | name=OnGetVisible}}
 
 
{{DocTableEnd}}
 
{{DocTableEnd}}
  

Latest revision as of 14:23, 11 March 2013

RxCommand.png

Description

rxCommand models element CT_Command of the MS Custom UI XML specification which specifies a built-in command for which the functionality will be repurposed

Properties

Property Name
Description
enabled Whether the controls is enabled
idMso The ID of a built-in control
isEmpty Read-only property; returns true if the control is empty
isLive Read-only property; returns true if the control is live
parent The control's parent object
xml Returns the xml node that corresponds to the state of the control

Methods

Method Name
Description
clear Clears the control's state
clone Creates a clone of the control (a new id is automatically created if applicable)
readXml Populates the control using the passed-in XML string

Delegates

Delegate Name
Description
getEnabled Callback that sets the control's enabled state
onAction Callback fired on user action

Events

Event Name
Description
OnActionEvent Callback fired on user action
OnGetEnabled Callback that sets the control's enabled state

Remarks

Examples

VBA

  1.  

C#

  1.  

VB.NET

  1.  

C++

  1.