I have the code below which now shows a standard windows help popup where available. Does anyone know if there is a way of positioning where this window appears? For example, to make it appear where the user has clicked?
function HelpPopupWindow(Command: Word; Data: Integer; var CallHelp: Boolean): Boolean;
var
dwIDs: array[0..3] of DWord;
begin
dwIDs[0] := Handle;
dwIDs[1] := Data;
dwIDs[2] := 0;
dwIDs[3] := 0;
HtmlHelp(Handle, PChar('HELP FILE LOCATION HERE::/cshelp.txt'), HH_TP_HELP_CONTEXTMENU, DWORD(@dwIDs[0]));
CallHelp := False;
end;
Cheers
Paul
You should use
HH_DISPLAY_TEXT_POPUPto display the popup help. This gives you more flexibility through theHH_POPUPstructure that you pass. Use theptfield to specify the position:The Helpware site gives some sample Delphi code:
In fact I think you already found this page judging by your code, but just needed to read a bit further down the page.