Disabled Actipro Buttons in Actipro Context Menus does not show screentips

Ribbon for WPF Forum

Posted 12 years ago by Wilfried Goller
Version: 12.1.0551
Avatar

Hi,

is there way to show the screent tip on disabled buttons used in a context menu?

I tried

ToolTipService.SetShowOnDisabled(btn, true);

but that doesn't work.

Here is my code:

var contextMenu = new ActiProContextMenu();
var menu = new ActiProMenu();
contextMenu.Items.Add(menu);

var btn = new ActiProButton(PhxCommands.CAFromSelection);
btn.IsEnabled = false; 
menu.Items.Add(btn);
ScreenTipService.SetScreenTipIsEnabled(btn, true);
ToolTipService.SetShowOnDisabled(btn, true);  

  
 

Any ideas?

Comments (6)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Wilfried,

Sorry but I believe we have code that prevents screentips from showing at all when the menu item is on a context menu, since screentips aren't generally shown in that scenario.


Actipro Software Support

Posted 12 years ago by Wilfried Goller
Avatar

Hi Support,

sorry for my late reply. But you're wrong. Screentips are also shown in context menu. The thing is, that the user want to see screen tips even on disabled items.

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Wilfried,

I did some more testing and found there was a case where it was showing screen tips on context menu items even though it shouldn't have been since we have code to prevent screen tips for context menu items.  We've fixed the bug for the next maintenance release.

But we also added a new static ScreenTipService.AllowScreenTipsOnContextMenus property that you'll be able to set to true to allow screen tips in context menus.


Actipro Software Support

Posted 12 years ago by Wilfried Goller
Avatar

Thanks for doing! Does this mean we have screentips even on disabled menu items? This would be the answer for the opening request.

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Wilfried,

Yes, by default there will be no screentips on context menu items.  If you enable that option then it will allow them on both enabled and disabled context menu items.


Actipro Software Support

Posted 12 years ago by Wilfried Goller
Avatar

Thanks again for explanation. Looking forward to the next release!

The latest build of this product (v24.1.2) was released 9 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.