[DUG] Re: Getting a control's helpkeyword

Paul A Norman paul.a.norman at gmail.com
Sun Dec 25 12:18:27 NZDT 2005


In case anyone else ever gets stuck on this .. I was looking arond the
Ihelp.. interfaces when in reality it was actually literally in front of my
nose all the time..

All I needed was the Screen object.

under TApplicationEvents.onHelp

this works well, casting to catch non TwinControls that have a helpKeyword

 showmessage((screen.ActiveControl as tcontrol).HelpKeyword);

Paul


On 22/12/05, Paul A Norman <paul.a.norman at gmail.com> wrote:
>
> Seasons Greetings!
>
> I am sure that this is right infront of my nose. I'm implementing a very
> simplified number eight wire help system.
>
> When using htkeyword on a control and setting helpKeyword:
>
> does the application object know what the helpKeyword was when help is
> triggered?
>
> You can retrieve the HelpContext from the Word portion of the
> application.onHelp event, (using TapplicationEvents), but I can not find
> where to get the calling control's helpKeyWord, does the application know
> which Tcontrol triggered the onhelp event?
>
> Paul
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20051225/a9832f7e/attachment.html


More information about the Delphi mailing list