Delphi 7 Help display problem
Posted on 2006-04-21
When I assign a help file and help context to a menu item in my program, the correct help screen is not displayed when F1 is pressed.
It will display the first help item in the help file contents no matter which menu item you were on when you pressed F1.
Also, a small popup box is dispayed on the screen with the title of the correct help item topic name and it appears to be independent of the help screen and must be closed separately.
This only happens when I use a tmainmenu object. In my forms and other places, help works fine. Except there is a significant delay in the display of the help of about 3 to 4 seconds. It is long enough to were you wonder if you pressed the F1 key. This happens with all help calls anywhere in the application.
I have experimented in the Delphi IDE to see if I could get an idea of where the problem was. I found that when you bring up Delphi without any files open at all and press F1 on a pull-down menu. It will displays the help for the main menu item of that group. The pull-down menu is also closed when the help appears.
I have tried other applications (projects) and installed Delphi 7 on other computers, and I get the same results.
I would like to know:
1) how to make help work correctly in a tmainmenu object. Or if I cannot, what other menu object will work correctly.
2) how to make the screen screen come up immediately as it does in other Windows based programs.