[Lazarus] Getting help for a type if its unit is not in uses
Xiangrong Fang
xrfang at gmail.com
Wed Feb 5 09:55:17 CET 2014
This is a great feature suggestion. If implemented I think it should also
work with constants. For example, it cost me some 10+ minutes to figure out
VK_ESCAPE is defined in LCLTypes.
Thanks!
2014-02-05 Sven Barth <pascaldragon at googlemail.com>:
> Hello together!
>
> On the German Delphi-Forum Delphi-PRAXiS there was the question in which
> unit the type TObjectList resided in Lazarus. Besides the obvious answer
> "contnrs" there was also the suggestion to use F1 on the TObjectList
> identifier to let the help find it for you. (For those that can read
> German, here is the thread: http://www.delphipraxis.net/
> 178892-lazarus-kennt-keine-tobjectlist.html )
>
> Now the problem is that this won't work in Lazarus which will return a
> error message "Hilfeschlüsselwort "FPCKeyword_TObjectList" nciht[sic!]
> gefunden." ("Help keyword "FPCKeyword_TObjectList" not found") [plus
> another, in my opinion needless, error message afterwards with (in my case)
> "No help found for "project1.lpr" at (13,16)"] and the user is none the
> wiser... This is at least the case in 1.0.12 on win64, I didn't check for
> any changes here in 1.2/1.3...
>
> Are there any ideas for improving this situation for people that know that
> there is an identifier in the RTL, FCL, whatever, but don't know which unit
> it resides in? E.g. Lazarus did scan the FPC sources, couldn't it keep an
> identifier->unit index? Also could the error message be improved a bit?
> E.g. kick out that second error and use "TObjectList" instead of
> "FPCKeyword_TObjectList" in the error message?
>
> Regards,
> Sven
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140205/745699a2/attachment-0003.html>
More information about the Lazarus
mailing list