rediffusion
7/30/2019 - 9:51 AM

Combobox - getItemCount

NOTE: Для »» DropDown и Gallery аналогично!

<comboBox 
 id="myComboBox" 
 label="MyComboBox:"  
 getItemCount="CallbackCBGetItemCount" 
 imageMso="PictureEffectsGlowGallery" 
 onChange="MyComboBoxCallbackOnChange" 
 sizeString= "WWWWWWWWWWWWW">
</comboBox>
Sub CallbackCBGetItemCount(control As IRibbonControl, ByRef count)
    'Callback кол-во Items
    Select Case control.ID
        Case "myComboBox"
            count = 4
    End Select
End Sub