How to place a form in help mode?

I am trying to put a form in "help mode" in Delphi 2010.

I have a button that the user clicks on and I want the cursor to change to a tooltip, and then when the user clicks on the control, a tooltip for the control is displayed

Is there a window message that I can send?

+5
source share
1 answer

Send a WM_SYSCOMMANDmessage to the form, skipping SC_CONTEXTHELPlike lParam.

Changes the cursor to a question mark with a pointer. If the user clicks the control in the dialog box, the control will receive the WM_HELP message .

- OnClick :

procedure TMyForm.Button1Click(Sender: TObject);
begin
  SendMessage(Handle, WM_SYSCOMMAND, SC_CONTEXTHELP, 0);
end;
+6

All Articles