Skip to content

RibbonBarSystemButton Object

Description

Object used to access the special properties of the Ribbon's system button.

For a list of all members defined in this module, see RibbonBarSystemButton Members.

Object Model

RibbonBarSystemButton Object Model
Diagram
CommandBarAction
CommandBar
CommandBarControls
CommandBarControl
Parent CommandBar
Copy CommandBarControl
RibbonGroup
Clone CommandBarControl

Remarks

The most important difference between this button and a normal button popup is the CloseOnDblClick property, which specifies whether to close the application when the Ribbon's system button is double-clicked.

The Style property controls how the system button will be displayed, either in 2007 or 2010 style.

  • Set the Style to xtpButtonCaption for Office 2010 style "tab" button.
  • Set the Style to xtpButtonAutomatic for Office 2007 style system button (big round button).

Example

This code will disable the double-click close feature:

Dim ControlFile As RibbonBarSystemButton  
Set ControlFile = RibbonBar.AddSystemButton()  
ControlFile.Id = ID_SYSTEM_ICON  
ControlFile.CloseOnDblClick = False

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.