Difference between revisions of "Method create"

From Ribbon Commander Documentation
Jump to: navigation, search
(VBA)
(VBA)
Line 30: Line 30:
 
' NOTE2: Notice that the dispatch scope is a property of rxCustomUI; not its context. i.e. rxCustomUI's  
 
' NOTE2: Notice that the dispatch scope is a property of rxCustomUI; not its context. i.e. rxCustomUI's  
 
' with different dispatch scopes belong to the same context above.
 
' with different dispatch scopes belong to the same context above.
 +
 +
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 14:11, 14 March 2013

This section is under construction. Please do not rely on any information it contains.


Description

Static factory method for rxCustomUI objects. A new context if created if required.

Parameters

Parameter Name
Parameter Type
Default Value
Description
contextId string null The context's unique string identifier
description string 'Dynamic RibbonX' The context's description
dispatchScope rxDispatchScope DispatchScope_local (VBA-specific) The context's dispatch mode
customUIMode rxCustomUIMode CustomUIMode_dynamic The context's mode

Remarks

Examples

VBA

  1. ' Create an rxCustomUI with global dispatch
  2. Dim myCustomUI As rxCustomUI
  3. Set myCustomUI = rxCustomUI.create("my_sample_context", "My Global Context", DispatchScope_global)
  4.  
  5. ' Create a second rxCustomUI in the same context but with local dispatch
  6. Dim myCustomUI2 as rxCustomUI
  7. Set myCustomUI2 = rxCustomUI.create("my_sample_context", "My Global Context", DispatchScope_local)
  8.  
  9. ' NOTE: Both objects now have access to the same state
  10. ' NOTE2: Notice that the dispatch scope is a property of rxCustomUI; not its context. i.e. rxCustomUI's 
  11. ' with different dispatch scopes belong to the same context above.

C#

  1.  

VB.NET

  1.  

C++

  1.