On Mon, 16 Jan 2006 23:19:53 +0800
Funky Beast <[EMAIL PROTECTED]> wrote:

> Have been looking at UnitEditor.pp and SynCompletion.pas.
> 
> I'm trying to implement item hints on SynBaseCompletionForm of
> ACompletion of TSourceNotebook. That is, when mouse is over
> an item of the identifier completion list, a hint pops up to
> display and describe the item.
> (Useful when looking at items that are longer than the
> completion form can show it, especially overloaded functions)
> 
> Is it implemented halfway or not at all?
> 
> Is the 'ItemList' property of ACompletion of TSourceNotebook
> used for this purpose, as I see it is filled with 'Dummy' strings,
> which looks like initializing ItemList?
> 
> If its not the above, i'll have to add a FHintList to TSourceNotebook.
> 
> Asking first so as not to cause overlapping codes.

Maybe these hints can help:

The completion box supports at the moment: Word completion, Template
completion and Identifer completion.
Word completion and Template completion collects the whole list and put them
into the ItemList.
Identifier completion is far more dynamic. There can be easily thousands of
items with long parameter lists. So adding them to the list would be far too
slow. The codetools do nearly everything on the fly. They don't for example
create strings to put into the list. They only gather code positions, and
when the user scrolls, the codetools read the information as needed.

About hints for identifiers:
I think, 'eclipse' has a nice idea: Right to completion box it puts a second
box of the same size and shows the help for each item. This has the
advantage, that you don't need the mouse and no new shortcuts.
This information is also available in lazarus. We have the fpdoc xml files.

What we need:
1. a hint window to right of the completion box.
2. the search for the fpdoc/xml path
3. the parsing of the fpdoc xml item and showing as formatted text

If someone implements 1 and 3, I will do 2.


Mattias


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to