[Lazarus] How to create hints in the IDE

Mattias Gaertner nc-gaertnma at netcologne.de
Sun Jul 25 01:50:00 CEST 2010


On Sun, 25 Jul 2010 01:31:52 +0200
Bernd Kreuss <prof7bit at googlemail.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Mattias Gaertner wrote:
> > 
> > What is the problem? How to reproduce?
> 
> It seems to work now. I can display a THindWindow in the code browser
> containing the information from fpdoc and the comments.

With "code browser" you mean View / Code Browser, don't you?

 
> The only thing i still don't understand is how to deal with the HTML
> tags in the fpdoc. The very same THintWindow window that is created
> exactly with the same data in the source editor will not show the HTML
> tags but I cannot find anything in the existing code that would strip
> the tags and I also cannot find any way to make
> TIDEHelpManager.GetHintForSourcePosition() return plaintext instead of HTML.
> 
> How does the editor version of the hint window get rid of the HTML tags?

First of all: fpdoc returns xml tags, not html tags. Converting is a
todo.
The idea is this:
The fpdoc and the comments are fetched, put together and some html is
created, including links. Then the viewer control shows the html. At
the moment there are two viewer controls. One simple label, that simply
strips the html. And one from turbopoweripro package. When you install
the package it replaces the label.


Mattias




More information about the Lazarus mailing list