Tooltips not displaying on a Ribbon

Category: visual studio graphics tools

Question

Steven J Gee on Mon, 19 Dec 2016 15:58:53


I've used the New Project process to create a C++ application - Single Doc with a Ribbon. I've added tabs, panels and buttons. Everything seems to work, EXCEPT the tooltip configured for the controls does not appear when I hover the mouse over the button.

Buttons using predefined constants such as ID_EDIT_COPY do show their tooltips as shown in the button properties. My buttons have the tooltip property, but do not bring them up. Am I missing something or is this by design?

Is it a control range issue? ID_EDIT_COPY is in the 50000 range, but mine are 32000-ish.

Other than this, the controls seem to work sensibly.

Replies

Steven J Gee on Mon, 19 Dec 2016 16:01:19


Ooops, I forgot to say: this is VS2015 Community Edition, Update 2.

Steven J Gee on Thu, 22 Dec 2016 12:49:47


I've managed to solve this myself!

The problem was that while there was a prompt, the second line was not present.

When menu and toolbar was the norm, you only needed the first line - it was displayed on the status bar. The second line was only needed if the menu item also had a toolbar button when it was displayed as a popup when the mouse hovered over the button.

So what you need to enter as the prompt is:

Long explanation\nshort name (Accelerator Key)

The (Accelerator Key) part is optional.