Rovango / cefpython

Automatically exported from code.google.com/p/cefpython
0 stars 0 forks source link

Tooltips not working in the pywin32 example #86

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open a page with tooltip (element with TITLE attribute) using cefpython 
based browser

What is the expected output? What do you see instead?
 Expected to see tooltip as rendered by all other browsers. CEFPython browser is not showing the tooltip.

What version of the product are you using? On what operating system?
  cefpython3-27.3-win32-py32

Original issue reported on code.google.com by sam...@gmail.com on 18 Sep 2013 at 2:40

GoogleCodeExporter commented 8 years ago
What OS?

Link titles and image alt/titles do work fine for me. Tested on Windows 7 / 
cefpython3 27.3,
using both wxpython.py and cefclient.exe.

Are you able to reproduce the problem with cefclient.exe that is distributed 
with the binaries?

Original comment by czarek.t...@gmail.com on 18 Sep 2013 at 6:06

GoogleCodeExporter commented 8 years ago
Image alt/title tested on google.com logo.

Link title tested on link 11:
http://wac.osu.edu/tutorials/links-testing.htm

Original comment by czarek.t...@gmail.com on 18 Sep 2013 at 6:08

GoogleCodeExporter commented 8 years ago
OS is WinXP

Apparently it works with the wx version, but not with win32 api. cefclient also 
shows the tooltip.

Original comment by sam...@gmail.com on 18 Sep 2013 at 10:54

GoogleCodeExporter commented 8 years ago
Have you tried implementing DisplayHandler.OnTooltip() with return value of 
false?

https://code.google.com/p/cefpython/wiki/DisplayHandler

Original comment by czarek.t...@gmail.com on 18 Sep 2013 at 10:58

GoogleCodeExporter commented 8 years ago
Yes I have tried and does not seem have any affect. In fact the OnTooltip is 
never even called. In the source, it has comments saying this is yet to be 
implemented: https://code.google.com/p/chromiumembedded/issues/detail?id=783

Regardless, since I found out it works with wx, that gave me a workaround for 
now.

Original comment by sam...@gmail.com on 18 Sep 2013 at 11:01

GoogleCodeExporter commented 8 years ago
I think that copying the whole ClientHandler class from the wxpython example
to the pywin32 example might fix the tooltip problem. My theory is that one
of the callbacks fixes the problem, by just being called. You could try that,
but it's just a guess.

Original comment by czarek.t...@gmail.com on 18 Sep 2013 at 11:12

GoogleCodeExporter commented 8 years ago
I have it copied, and still does not work.

Original comment by sam...@gmail.com on 18 Sep 2013 at 12:23

GoogleCodeExporter commented 8 years ago
It seems to be related to this issue in CEF:
https://code.google.com/p/chromiumembedded/issues/detail?id=972

The pywin32 examples embed browser in a top window, in the wx example browser 
is embedded in a container, so the parent window is not a top window and that's 
why it works in the wx example.

Original comment by czarek.t...@gmail.com on 22 Nov 2013 at 10:13

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
This might be worth trying: 
http://www.magpcss.org/ceforum/viewtopic.php?p=25961#p25961

Original comment by czarek.t...@gmail.com on 22 May 2015 at 3:36

GoogleCodeExporter commented 8 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/cefpython/issues/86

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 6:33