Reputation: 13
There is a fine how-to-do for customized ribbons with own Icons in Access: http://www.accessribbon.de/?Access_-_Ribbons:Eigene_Icons___Bilder_in_Ribbon_Controls_verwenden
I follwed it - just the Icons dont show.
Button using imageMso works fine, button using getImage does not:
<button id="btnFrmPersonenOeffen1"
label="Personen"
imageMso="AccessFormDatasheet"
onAction="FormOpen" />
<button id="btnFrmPersonenOeffen2"
label="Personen"
size="large"
getImage="getImages"
tag="IBU.ico"
onAction="FormOpen" />
Added some test in the getImages() procedure:
Public Sub getImages(control As IRibbonControl, _
ByRef image)
Dim t As String
t = Application.CurrentProject.path & "\" & control.Tag
MsgBox t, , "pic found: [" & Dir(t) & "]"
Set image = LoadPicture(t)
End Sub
even tried referring to a non-existent Picture in the tag-entry to make sure it causes an error message - as it did. Referred to different Icons of different sizes. Changed size from "normal" to "large" - space provided in the button changed - just the referred Icon does't Show up. There's empty space shown:
(added screenshot but it was removed)
Upvotes: 0
Views: 116
Reputation: 49455
Make sure that you don't get any UI errors, see How to: Show Add-in User Interface Errors for more information.
Upvotes: 0