Callback VBA-Callback-Routine
getContent Sub cbGetContent(control As IRibbonControl, ByRef content)
getItemHeight Sub cbgetItemHeight(control As IRibbonControl, ByRef height)
getItemWidth Sub cbgetItemWidth(control As IRibbonControl, ByRef width)
getTitle Sub cbGetTitle (control As IRibbonControl, ByRef title)
onAction repurposed Sub cbOnAction(control As IRibbonControl, pressed As Boolean, ByRef cancelDefault), byRef CancelDefault)
Tabelle 15.2 Syntax für die Callback-Methoden (Fortsetzung)
Methoden der CommandBar-Klasse
Methode Description
Sub ExecuteMso(idMso As String) Die entsprechende Funktion wird ausgeführt (wie nach einem Klick auf die
betreffende Schaltfläche)
Function GetEnabledMso(idMso as String) as Boolean Prüft, ob das Control aktiviert ist.
Function GetImageMso(idMso As String, _
Width As Long, Height As Long) _
As IPictureDisp
Gibt das durch idMso spezifizierte Image mit vorgegebener Breite und Höhe
zurück.
Function GetLabelMso(idMso As String) As String Gibt die Beschriftung des Controls zurück.
Function GetSupertipMso(idMso As String) As String Gibt den Supertip zurück.
Function GetVisibleMso(idMso as String) as Boolean Prüft, ob das Control sichtbar ist.
Tabelle 15.3 Wichtige Methoden der CommandBar-KLasse
1019
Übersichten

Get Microsoft Office Access 2007-Programmierung - Das Handbuch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.