locked
Custom Ribbon RRS feed

  • Question

  • Hello,

    I have converted a Access 2000 database that had custom toolbars.  I've converted them to xml ribbons.  However, on some of the custom toolbars there were single items that launched forms. It appears that I cant have a ribbon open a form unless it has a group associated with it. Is I possible to have a ribbon with no group? For instance, on the ribbon is a "Payment" selection, when selected the ribbon has a button "Make Payment" group.  Although this works fine, the users find it frustrating that they must select "Payment" and then choose "Make Payment" when this is the only selection.  Thanks in advance!

    Current Code:

    <tab id="tabPayment" label="Payment">
    <group id="grpPayment">
    <button id="cmdPayment" label="View Payment"  size="large"  supertip="Click Here To View Payments" onAction="RibbonButtonClick" /> 
    </group>

    Tuesday, July 16, 2013 7:24 AM

Answers

  • Hi Azcactus

    The direct answer to your question is that every items on a ribbon has to be within a group, but you can have all of the items on the ribbon in a single group. The Group is really just the "heading" at the bottom of each section. From example, on the "External Data" ribbon there are the groups: "Import & Link" and "Export"

    So that we are using the same terminology, the ribbon is the whole collection of tabs at the top for the database.
    The ribbon contains multiple tabs. When you first open Access there are the "Home", "Create", "External Data" and "Database Tools" tabs.
    Within a tab are groups, and within the groups are the actions you can take.

    In that context, and based on the sample XML, it seems that you are trying to perform an action when you select the "Payment" tab.

    Tabs are designed to be a collection of controls (buttons, check boxes, combo boxes, drop down lists, etc.) that allow you to take actions. The tab was never designed to initiate an action on it's own.

    That being said, you may be able to use the "getKeytip", "getLabel" or "getVisible" attributes of the tab to specify a call back that would open the form. The biggest problem I see with attempting this is that you will not be able to control when these events are fired. Specifically if the tab is active and the user clicks on it again I am almost certain that none of these events will fire.

    More Information:
    =========================
    Customize the Ribbon
    http://office.microsoft.com/en-us/access/HA102114151033.aspx?pid=CH100621911033

    Customizing the Office Fluent User Interface in Access 2007
    http://msdn.microsoft.com/en-us/library/bb187398.aspx

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    http://msdn.microsoft.com/en-us/library/aa338202.aspx

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    http://msdn.microsoft.com/en-us/library/aa338199.aspx

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
    http://msdn.microsoft.com/en-us/library/aa722523.aspx

    Dynamically Updating the Fluent UI
    http://msdn.microsoft.com/en-us/library/ms406046.aspx

    Best Regards,

    Donald M.
    Microsoft Online Community Support
    --------------------------------------------------------------------------------
    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    • Marked as answer by Dummy yoyo Monday, July 29, 2013 12:33 AM
    Thursday, July 18, 2013 9:49 PM

All replies

  • Hi azcactus,

    Welcome.

    I'm trying to involve some senior engineers into the issue. It takes some time. Your patience will be greatly appreciated.

    Thanks for your understanding and have a nice day.


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, July 18, 2013 7:06 AM
  • Hi Azcactus

    The direct answer to your question is that every items on a ribbon has to be within a group, but you can have all of the items on the ribbon in a single group. The Group is really just the "heading" at the bottom of each section. From example, on the "External Data" ribbon there are the groups: "Import & Link" and "Export"

    So that we are using the same terminology, the ribbon is the whole collection of tabs at the top for the database.
    The ribbon contains multiple tabs. When you first open Access there are the "Home", "Create", "External Data" and "Database Tools" tabs.
    Within a tab are groups, and within the groups are the actions you can take.

    In that context, and based on the sample XML, it seems that you are trying to perform an action when you select the "Payment" tab.

    Tabs are designed to be a collection of controls (buttons, check boxes, combo boxes, drop down lists, etc.) that allow you to take actions. The tab was never designed to initiate an action on it's own.

    That being said, you may be able to use the "getKeytip", "getLabel" or "getVisible" attributes of the tab to specify a call back that would open the form. The biggest problem I see with attempting this is that you will not be able to control when these events are fired. Specifically if the tab is active and the user clicks on it again I am almost certain that none of these events will fire.

    More Information:
    =========================
    Customize the Ribbon
    http://office.microsoft.com/en-us/access/HA102114151033.aspx?pid=CH100621911033

    Customizing the Office Fluent User Interface in Access 2007
    http://msdn.microsoft.com/en-us/library/bb187398.aspx

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    http://msdn.microsoft.com/en-us/library/aa338202.aspx

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    http://msdn.microsoft.com/en-us/library/aa338199.aspx

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
    http://msdn.microsoft.com/en-us/library/aa722523.aspx

    Dynamically Updating the Fluent UI
    http://msdn.microsoft.com/en-us/library/ms406046.aspx

    Best Regards,

    Donald M.
    Microsoft Online Community Support
    --------------------------------------------------------------------------------
    Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    • Marked as answer by Dummy yoyo Monday, July 29, 2013 12:33 AM
    Thursday, July 18, 2013 9:49 PM