<div dir="ltr">On Thu, Jul 18, 2013 at 2:22 PM, Juha Manninen <span dir="ltr"><<a href="mailto:juha.manninen62@gmail.com" target="_blank">juha.manninen62@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On Thu, Jul 18, 2013 at 6:26 PM, Kenneth Cochran<br>
<<a href="mailto:kenneth.cochran@gmail.com">kenneth.cochran@gmail.com</a>> wrote:<br>
> Anyone have<br>
> a ballpark guess as to how much effort would it take to extend the tooltip<br>
> for the component pallet to display the <short> tag from the FPDoc info?<br>
<br>
</div>The hint is set in unit ide/ComponentPalette, line 744 in Lazarus trunk.<br>
I don't have details for getting the FPDoc info but you can study the<br>
code yourself. It is used for example in the Object Inspector's<br>
Information Box below the properties.<br>
I don't think the feature requires much code once you have figured out<br>
where to get the needed data. This is typical in a big project. A<br>
commit with only few lines of code has required many hours of studying<br>
the existing code.<br>
<br></blockquote><div><br></div><div>Yea, I found TComponentPalette.UpdateNotebookButtons on my own in a round about way. I set a breakpoint in TControl.SetHint and launched an instance of the IDE with the debugger attached. After a half dozen hits I was into the pallet speedbuttons and checked the call stack.</div>
<div><br></div><div>Now I'm trying to track down how the source editor invokes FPDoc support when you hover over an identifier. A search for FPDoc in the source turned up the CodeHelp unit. Anyone know if I'm on the right track? </div>
</div></div></div>