如何将表格放入帮助模式? [英] How do I put a form in to help mode?
本文介绍了如何将表格放入帮助模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在Delphi 2010中将表单置于帮助模式。
I am trying to put form into "help mode" in Delphi 2010.
我有一个用户单击的按钮,并且希望光标更改为帮助光标,然后当用户单击控件时,将显示控件的帮助
I have a button which the user clicks, and I want the cursor to change to the help cursor, then when a user clicks onto a control, the help for the control is displayed
是否可以发送窗口消息?
Is there a window message that I can send?
推荐答案
发送 WM_SYSCOMMAND
消息发送到表单,将 SC_CONTEXTHELP
作为 lParam
。
将光标更改为带指针的问号。如果用户然后单击对话框中的控件,则该控件会收到 WM_HELP 消息。
写在按钮 OnClick
事件处理程序中这样的事情:
Write something like this in your button OnClick
event handler:
procedure TMyForm.Button1Click(Sender: TObject);
begin
SendMessage(Handle, WM_SYSCOMMAND, SC_CONTEXTHELP, 0);
end;
这篇关于如何将表格放入帮助模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文