CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

HTML Tooltip not showing without Common Controls

Open carlovecchiato opened this issue 7 years ago • 4 comments

Hi there, I have a winform application without the Microsoft.Windows.Common-Controls; its use is denied by system architect. when I open a webpage containing tooltips (html title attribute), these tooltips are not shown.

Is this a bug? Is it possible to see these tooltips without using CommonControls?

Cheers, Carlo

carlovecchiato avatar Jul 31 '19 08:07 carlovecchiato

:wave: @carlovecchiato, we use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project. If you have a question, ask it on StackOverflow or use ceforum (for questions specific to CEF). If you are new to CefSharp then we suggest you read https://github.com/cefsharp/CefSharp/wiki/General-Usage

support avatar Jul 31 '19 09:07 support

It's not a bug, it's a Chromium requirement.

amaitland avatar Jul 31 '19 09:07 amaitland

For reference I'm not aware of any workaround, the http://cefsharp.github.io/api/73.1.x/html/M_CefSharp_IDisplayHandler_OnTooltipChanged.htm method is only called for OSR rendering (basically only called in WPF/OffScreen versions).

There is upstream issue https://bitbucket.org/chromiumembedded/cef/issues/783 which has been open forever.

You can ask on https://magpcss.org/ceforum/index.php for a second opinion.

amaitland avatar Jul 31 '19 09:07 amaitland

So in this case, we need to generate an app.manifest for the project if you don't have. The way:

In Visual Studio 2010, 2012, 2013, 2015 and 2017 you can add the manifest file to your project. Right-click your project file on the Solution Explorer, select Add, then New item (or CTRL+SHIFT+A). There you can find Application Manifest File. The file name is app.manifest.

after app.manifest is generated uncomment this part containing Microsoft.Windows.Common-Controls: once done, build the project, you can see the HTML tooltips in your chromium embedded framework c# in a Winforms application.

I hope this will fix your issue.

sayaniHalderMphasis avatar Mar 11 '20 12:03 sayaniHalderMphasis