rediffusion
7/29/2019 - 10:00 AM

getSize

NOTE: Для »» Menu и Dynamic Menu подходит тоже!

<button 
 id="MyBtn1" 
 getSize="CallbackGetSize" 
 imageMso="BevelShapeGallery"
 onAction="MyButtonCallbackOnAction"/>
<button 
 id="MyBtn2" 
 getSize="CallbackGetSize" 
 imageMso="BevelShapeGallery"
 onAction="MyButtonCallbackOnAction"/>
Sub CallbackGetSize(control As IRibbonControl, ByRef size)
    ' Callback size
    ' 0 = normal
    ' 1 = large
    Select Case control.ID
        Case "myBtn1"
            size = 0
        Case "myBtn2"
            size = 1
    End Select
End Sub