Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8432089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:01:50+00:00 2026-06-10T06:01:50+00:00

I have a problem with my custom XML Ribbon, The callback onAction, getImage and

  • 0

I have a problem with my custom XML Ribbon,
The callback “onAction”, “getImage” and “getEnabled” work perfectly but getScreentip and getSupertip don’t work.

XML :

<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" onLoad="Ribbon_Load">
  <ribbon startFromScratch="true">
    <qat>
      <sharedControls>
        <button id="Flag_fr-FR"
                onAction="OnActionCallback"
                getScreentip="GetScreentip"
                getSupertip="GetSupertip" 
                getImage="GetImage"/>
        <button id="Flag_en-EN"
                onAction="OnActionCallback" 
                getScreentip="GetScreentip" 
                getSupertip="GetSupertip"
                getImage="GetImage"/>
        <separator id="Sep1" insertAfterQ="FlagEn"/>
        <button id="Refresh"
                insertAfterQ="Sep1" 
                getScreentip="GetScreentip"
                getSupertip="GetSupertip"
                onAction="OnActionCallback"
                getImage="GetImage"/>
        <separator id="Sep2" insertAfterQ="Refresh"/>
        <button id="Search"
                insertAfterQ="Sep2"
                getScreentip="GetScreentip"
                getSupertip="GetSupertip"
                onAction="OnActionCallback"
                getImage="GetImage"/>
        <button id="OnScreenKeyboard" insertAfterQ="Search"
                getScreentip="GetScreentip"
                getSupertip="GetSupertip"
                onAction="OnActionCallback"
                getImage="GetImage"/>
        <button id="Logout" insertAfterQ="OSK"
                getScreentip="GetScreentip"
                getSupertip="GetSupertip"
                onAction="OnActionCallback"
                getEnabled="GetEnabled"
                getImage="GetImage"/>
      </sharedControls>
    </qat>
  </ribbon>
</customUI>

Code-behind :

public String GetScreetip(Office.IRibbonControl control)
 {
     return ("Test...");
 }

 public String GetSupertip(Office.IRibbonControl control)
 {
     return ("Test");
 }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:01:52+00:00Added an answer on June 10, 2026 at 6:01 am

    First, you have mistyped the handler name, in the xml you wrote getScreentip="GetScreentip" but in the code you wrote GetScreetip and missed the n

    Second, for some reason Office ignore the char combination ... so it will only display Test

    Other than this, everything seems fine.

    Example:

    Ribbon.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
        <ribbon>
            <tabs>
                <tab idMso="TabAddIns">
                    <group label="MyAddIn">
                        <button id="buttonAbout"
                                onAction="buttonAbout_Click" 
                                label="About" 
                                getScreentip="buttonAbout_Screentip" 
                                getSupertip="buttonAbout_Supertip" />
                    </group>
                </tab>
            </tabs>
        </ribbon>
    </customUI>
    

    Ribbon.cs

    public void buttonAbout_Click(Office.IRibbonControl control)
    {
        if (control.Id != "buttonAbout")
            return;
        // it's not advised to use MessageBox in Office Addins
        // sometimes it gets blocked by Office
        MessageBox.Show("MyAddin v1.0");
    }
    
    public string buttonAbout_Screentip(Office.IRibbonControl control)
    {
        if (control.Id != "buttonAbout")
            return string.Empty;
        return "About Screentip";
    }
    
    public string buttonAbout_Supertip(Office.IRibbonControl control)
    {
        if (control.Id != "buttonAbout")
            return string.Empty;
        return "About Supertip";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem, with my custom components and modules. In the form XML
I have the following problem: I want to add a custom view (custom_view.xml and
I have a weird problem. I cannot modify the XML I need to work
I have problem with casting custom event currentTarget to component. When I'm trying to
I have a problem with leaking custom cells. In my overridden UITableViewController, I have,
i have a list view with a BaseAdapter for custom view.. i have problem
I have a strange problem with my Custom View Group: It is an extended
I have a problem to configure the Kendo-Ui with Combo-box with custom values. I
I have a problem with Hibernate Validator 3.1.0.GA not looking up custom validation messages
I seem to have a problem with getting MVC to fill in my custom

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.