rediffusion
7/30/2019 - 10:07 AM

Combobox - getItemSuperTip

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

<comboBox 
 id="myComboBox" 
 label="My ComboBox:"
 getItemSupertip="CallbackCBGetItemSupertip" 
 imageMso="PictureEffectsGlowGallery" 
 onChange="MyComboBoxCallbackOnChange" 
 sizeString= "WWWWWWWWWWWWW">
</comboBox>
Sub CallbackCBGetItemSupertip(control As IRibbonControl, _
                              index As Integer, _
                              ByRef supertip)
    Select Case control.ID
        Case "myComboBox"
            supertip = Nz(DLookup("txtSubName", "tblPictures", _
                                  "txtPicName='" & _
                                  Format(index, "00") & "'"), " ")
    End Select
End Sub