You are here:   Home > Access - Ribbons > Ribbon XML / Controls > Gallery

Gallery

Gallery

Sample Ribbon XML file:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
    <ribbon startFromScratch="false">
        <tabs>
            <tab id="MyTab" label="My Tab">
                <group id="MyGroup" label="My Group">
                    <labelControl id="myLabel1" label="Sample:" />
                    <labelControl id="myLabel2" label="Gallery" />
                    <gallery id="MyGallery" 
                             imageMso="DateAndTimeInsert"
                             label="Select a month:" 
                             columns="3" 
                             rows="4"
                             onAction="MyGallerySelMonatCallbackOnAction" >
                        <item id="itmGall1" label="January" imageMso="LassoSelect"/>
                        <item id="itmGall2" label="February"
                          imageMso="AppointmentColorDialog"/>
                        <item id="itmGall3" label="March" imageMso="LassoSelect"/>
                        <item id="itmGall4" label="April"
                          imageMso="AppointmentColorDialog"/>
                        <item id="itmGall5" label="May" imageMso="LassoSelect"/>
                        <item id="itmGall6" label="June"
                          imageMso="AppointmentColorDialog"/>
                        <item id="itmGall7" label="July" imageMso="LassoSelect"/>
                        <item id="itmGall8" label="August"
                          imageMso="AppointmentColorDialog"/>
                        <item id="itmGall9" label="September" imageMso="LassoSelect"/>
                        <item id="itmGall10" label="October"
                          imageMso="AppointmentColorDialog"/>
                        <item id="itmGall11" label="November" imageMso="LassoSelect"/>
                        <item id="itmGall12" label="December"
                          imageMso="AppointmentColorDialog"/>
                        <button id="MyButton" label="Button in gallery"
                           onAction="MyButtonCallbackOnAction"
                           imageMso="HappyFace"/>
                    </gallery>
                 </group>
            </tab>
        </tabs>
    </ribbon>
</customUI>




Attributes: columns, description, enabled, id, idMso, idQ, image, imageMso,
                 insertAfterMso, insertAfterQ, insertBeforeMso, insertBeforeQ,
                 itemHeight, itemWidthkeytip, label, rows, screentip, showImage,
                 showItemImage, showItemLabel, showLabel, sizesizeString,
                 supertip, tagvisible

                 Added in O2010: invalidateContentOnDrop 

Callbacks: getDescription, getEnabled, getImage
                  getItemCount, getItemHeightgetItemID, getItemImage,
                  getItemLabelgetItemScreentipgetItemSupertip,
                  getItemWidthgetKeytipgetLabel, getScreentip,
                  getSelectedItemID, getSelectedItemIndex,
                  getShowImagegetShowLabel, getSizegetSupertip,
                  getVisible, onAction



You can find this sample in Sample DB 1



 

 

 

Last Updates:

18.03.2021
New Download added. ...

25.10.2018
Update Site "Trusted Locations" ...

22.10.2018
New Download added. ...

08.04.2018
IDBE RibbonCreator 2016 (x86 and x64) for Office 2013 and Office 2016 - new release. ...

 

Last update: