Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7440287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:49:41+00:00 2026-05-29T10:49:41+00:00

I have the code below which now shows a standard windows help popup where

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:49:42+00:00Added an answer on May 29, 2026 at 10:49 am

    You should use HH_DISPLAY_TEXT_POPUP to display the popup help. This gives you more flexibility through the HH_POPUP structure that you pass. Use the pt field to specify the position:

    Specifies (in pixels) where the top center of the pop-up window should be located.

    The Helpware site gives some sample Delphi code:

    {Show HH Popup using a string (StringID) from text file in a CHM
    StringID: eg. 99; CHMTextFile: eg. _runDir + 'help.chm::/cshelp.txt'}
    function HH_ShowPopupHelp3(aParent: TForm; StringID: Integer; 
      CHMTextFile: String; XYPos: TPoint): HWND;
    var hhpopup: HH.THHPopup;
    begin
      with hhpopup do
      begin
        cbStruct := sizeof(hhpopup); //sizeof this structure
        hinst := 0; //no used 
        idString := StringID; //topic number in a text file.
        pszText := nil; //no used
        pt := XYPos; //top center of popup
        clrForeground := COLORREF(-1); //use -1 for default - RGB value
        clrBackground := COLORREF(-1); //use -1 for default - RGB value
        rcMargins := Rect(-1,-1,-1,-1);//amount of space between edges
        pszFont := ''; 
      end;
      Result := HtmlHelp(aParent.Handle, PChar(CHMTextFile), 
      HH_DISPLAY_TEXT_POPUP, DWORD(@hhpopup));
    end;
    

    In fact I think you already found this page judging by your code, but just needed to read a bit further down the page.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp:dropdownlist, which shows below code when page renders <select id=ContactUs_ddlWhichProgrammes name=ContactUs$ddlWhichProgrammes>
I have the code below which I now need to figure out how to
So far i have got the code below which works lovely when trying an
I have the code below, which works fine it can be viewed for an
I have the code below, which sends the value of the textarea and either
I have the below code, which iterates over a list based on a custom
I have the below code for my a Dialog box for a which contains
I have a code like this below, which gives me a $link that equals
I have below is the html code for TD which gets appended after matching
I have to code below - works great in IE and Opera, but does

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.