box

In the object model this is RibbonBox
A container that organises controls in a group.
This type of control is invisible in that it does not have a border or any UI component.
It can be vertical or horizontal.


<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> 
  <ribbon startFromScratch="true">
    <tabs>
      <tab id="CustomTab" label="My Tab">
        <group id="Group1" label="MyGroup">
          <box id="MyBox"
               boxStyle="horizontal" >
             <button id="button1"
                     label="Button"
                     imageMso="HappyFace" />
          </box>
        </group>
      </tab>
    </tabs>
  </ribbon>
</customUI>

Attributes (properties)

boxstyle(BoxStyle) "vertical" | "horizontal" (RibbonBoxStyle.Vertical) 
enabled(Enabled) "true" | "false" 
id(Id) 
idQ  
idMso  
insertAfterMso  
insertAfterQ  
insertBeforeMso  
insertBeforeQ  
keytip  
label  
screentip  
showLabel"true" | "false" 
size"normal" | "large" 
supertip  
tag(Tag) allows you to associate custom data at runtime 
visible(Visible) "true" | "false" default is true 

Callbacks (run-time)

getVisibleBox_OnGetVisible -

Children

This control can contain any type of control except (separator, group or tab).

button  
buttonGroup  
checkBox  
comboBox  
control  
dropDown  
dynamicMenu  
editBox  
gallery  
labelControl  
menu  
menuSeparator  
splitButton  
toggleButton  

The RibbonBox object has an Items collection that returns a RibbonComponentCollection
This can be used to iterate over the controls
Then controls in a box can only be changed at design time



© 2019 Better Solutions Limited. All Rights Reserved. © 2019 Better Solutions Limited TopPrevNext