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:

19.01.2013
Update Downloads for "Trusted Locations" - Versions for Office 2013 ...


29.08.2012
Revised versions for IDBE RibbonCreator2010 (Version 1.1014a) ...

07.08.2012
Update Group Attributes and Callbacks. ...

02.08.2012
New Access FAQ added. New Download added. ...

 

Last update:
April 07, 2013, 22:24