Hello Folks,
I'm working on a HTML based hint component. Works this way:
HtmlHint(widget,"<img src=\"16/query\"> This is a test hint")
where widget can be any widget. The result would be this:
http://mess.hu/download/python/htmlhint.jpg
The HtmlHint component is connected to a "clipart provider" which serves the images (overriding some methods in wx.HtmlWindow). I'm very close to the final solution. I only have one big problem. The HTML format is resolution independent. I have no clue how to determine the optimal size of the hint window. But I have to do it somehow. Usually, the hint will contain text and possibly a few small icons only. Unfortunately, the HTML renderer will be different on different operating systems, and I cannot even calculate the size of the text.
It is not an easy question, and I do not expect to get a perfect solution here. I'm willing to work hard on this, but I would like to get some ideas. I believe this component will be good enough so I can make it freely available for everyone. I have a similar solution in Delphi and it looks very attractive:
http://mess.hu/images/cerebellum/elojegyzes_big.jpg
I bought the Delphi version of the HTML hint component. Somehow they solved the sizing problems, but they are using a fixed rendering engine and they only allow a small number of HTML tags.
Les