Dave,
TForm does not package the message sent by the icon into an event. You will
have to trap WM_SYSCOMMAND message and check the wParam parameter to see if
it equals SC_CONTEXTHELP.
procedure wmSysCommand (var Message: TMessage); message WM_SYSCOMMAND;
procedure TMyForm.wmSysCommand (var Message: TMessage);
begin
if Message.wParam = SCCONTEXTHELP then // do something
else Inherited;
end;
Alternatively, you can trap the TForm/TApplication OnHelp event (must have
set HelpContext property).
Dennis.
> Will this fire up windows help? Because thats not what I want... I just
> want to know when someones clicked with this icon on a control and
> display a few lines of text.
> Have you set the HelpContext under the components properties? Also you
> must
> set the application.helpfile property.
> > Has anyone got an example of how to get this going?
> > No events seem to fire when this border icon is selected.
>
> ------------------------------------------------------------------------
> ---
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
> ------------------------------------------------------------------
> ---------
> New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> Website: http://www.delphi.org.nz
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz