Gallery
Die dazugehörige XML Ribbon Datei:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon startFromScratch="false"> <tabs> <tab id="MyTab" label="Meine Tab"> <group id="MyGroup" label="Meine Gruppe"> <labelControl id="myLabel1" label="Beispiel:" /> <labelControl id="myLabel2" label="Gallery" /> <gallery id="MyGallery" imageMso="DateAndTimeInsert" label="Wählen Sie einen Monat:" columns="3" rows="4" onAction="MyGallerySelMonatCallbackOnAction" > <item id="itmGall1" label="Januar" imageMso="LassoSelect"/> <item id="itmGall2" label="Februar" imageMso="AppointmentColorDialog"/> <item id="itmGall3" label="März" imageMso="LassoSelect"/> <item id="itmGall4" label="April" imageMso="AppointmentColorDialog"/> <item id="itmGall5" label="Mai" imageMso="LassoSelect"/> <item id="itmGall6" label="Juni" imageMso="AppointmentColorDialog"/> <item id="itmGall7" label="Juli" imageMso="LassoSelect"/> <item id="itmGall8" label="August" imageMso="AppointmentColorDialog"/> <item id="itmGall9" label="September" imageMso="LassoSelect"/> <item id="itmGall10" label="Oktober" imageMso="AppointmentColorDialog"/> <item id="itmGall11" label="November" imageMso="LassoSelect"/> <item id="itmGall12" label="Dezember" imageMso="AppointmentColorDialog"/> <button id="MyButton" label="Button in Gallery" onAction="MyButtonCallbackOnAction" imageMso="HappyFace"/> </gallery> </group> </tab> </tabs> </ribbon> </customUI>
Attribute: columns, description, enabled, id, idMso, idQ, image, imageMso,
insertAfterMso, insertAfterQ, insertBeforeMso, insertBeforeQ,
itemHeight, itemWidth, keytip, label, rows, screentip, showImage,
showItemImage, showItemLabel, showLabel, size, sizeString,
supertip, tag, visible
Hinzugefügt in O2010: invalidateContentOnDrop
Callbacks: getDescription, getEnabled, getImage,
getItemCount, getItemHeight, getItemID, getItemImage,
getItemLabel, getItemScreentip, getItemSupertip,
getItemWidth, getKeytip, getLabel, getScreentip,
getSelectedItemID, getSelectedItemIndex,
getShowImage, getShowLabel, getSize, getSupertip,
getVisible, onAction
Sie finden dieses Beispiel auch in der Beispieldatenbank 1