Results 1 to 5 of 5
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Toolbar button tags (WinXP/Word2003)

    This is just a curiosity query, but - you know the tags that show if you hover over a toolbar button? They're the macro name, usually, within the parameters of the tag, eg the button that runs a macro called 'blueUnderscore' would have a tag saying 'Blue Underscore'.

    So my question is, is it possible to remove these tags? Someone asked me the other day to remove the tags from the buttons of a custom toolbar on a template but I had to say I couldn't - in fact I couldn't even find anything that hinted it might be possible, so I was pretty definitive and said it wasn't (possible) - was I wrong?
    Beryl M


  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Toolbar button tags (WinXP/Word2003)

    A toolbar button displays its ToolTipText property as screentip; if that is empty, it displays its Caption. So in order to get rid of the "tag", you'd have to clear both the ToolTipText and Caption properties. Obviously, you should only do this if you have set the button to display an icon, otherwise you would see a blank button.

    In code:

    With Application.CommandBars("Beryl").Controls(1)
    .Caption = ""
    .ToolTipText = ""
    End With

    By the way, it's a user setting whether screentips are displayed:
    - Select Tools | Customize...
    - Activate the Options tab.
    - Tick or clear the "Show ScreenTips on toolbars" check box according to your preference.
    - Click OK.

  3. #3
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Toolbar button tags (WinXP/Word2003)

    Right - so since they wanted to get rid of the tags because the title text on the button was sufficient, they still can't get rid of them, in that case? So effectively I was right for our circumstances!

    Thanks, Hans, it's nice to know!
    Beryl M


  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Toolbar button tags (WinXP/Word2003)

    If the text on the button itself (the Caption) is not blank, the only way to suppress the screentips is to turn off the "Show Screentips on toolbars" setting. But that is an action of the end user, not of the designer of the toolbars. And it will affect all buttons on all toolbars, not only your custom buttons.

  5. #5
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Morden, Surrey, United Kingdom
    Posts
    1,838
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Re: Toolbar button tags (WinXP/Word2003)

    Yes, that's what I thought.

    Thanks for the insights!
    Beryl M


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •