[Gambas-user] Editor with tooltips (Gambas 2)

Rolf-Werner Eilert eilert-sprachen at ...221...
Tue Nov 29 16:54:47 CET 2011


Am 28.11.2011 18:51, schrieb Charlie Reinl:
> Am Montag, den 28.11.2011, 16:34 +0100 schrieb Rolf-Werner Eilert:
>> Am 28.11.2011 14:27, schrieb Charlie Reinl:
>>> Am Montag, den 28.11.2011, 12:24 +0100 schrieb Rolf-Werner Eilert:
>>>> As I am using the editor at several places in my projects now, I would
>>>> be happy if it was possible to give tooltips to the user.
>>>>
>>>> Don't know if you call them different, I mean the yellow helpline which
>>>> gives an idea of the parameters you can state, e. g.
>>>>
>>>> Add(Value AS String [,Index AS Integer])
>>>>
>>>> as soon as you type the ( after .Add
>>>>
>>>> Is that functionality already there? Or does someone have an idea how to
>>>> implement it?
>>>>
>>>> Thanks for your hints!
>>>>
>>>> Rolf
>>>>
>>> Salut Rolf,
>>>
>>> you should look at CheckCompletion in FEditor, in the gambas2 project
>>> (the gambas2 IDE) .
>>>
>>>    Think that's what you'r looking for
>>
>> Thank you very much, but I think this is the drop-down list of
>> suggestions that appears when you type "." for instance.
>>
>> What I was looking for is the small yellow "window" under my current
>> code line that has what can be typed into a () for some function (system
>> or own ones). It appears when you type "(" and looks like a tooltip of
>> some kind. Or is it in there? Then I didn't find it.
>
> Salut Rolf,
>
> ok, if it is not this one, it has to be in FEditor it starts in
> GetExpressionSignature and find you yellow Window in FSignature (between
> is a long (debug) way)
>

Salut, bonsoir Charlie,

This is my third answer :-) In the FEditor source I found how to pick 
out text parts:

Editor[Lines] lets you get the contents of a specific line, and 
Editor.Line and Editor.Column point to the cursor position. Easy as 
cake... if you know it ;-)

Regards

Rolf




More information about the User mailing list