Using Delphi XE2 and also Delphi 6
I discovered that hitting F1 to open the help file to a help context does not open the help file to the proper context yet using the menu item for which F1 is the shortcut, opens the help file to the proper context. I also have a button that calls the menu item code.
I checked to make sure both F1 and the menu item and the button are calling the exact same line of code and they are:
procedure TForm1.Help1Click(Sender: TObject);
begin
Application.HelpContext(Self.HelpContext);
end;
Self.HelpContext
value is changed depending on where the user is in the form and I verified that when that line is executed Self.HelpContext
is the correct value and is the same value when called via F1 or the menu item or the button.
I verified this issue also exists in every previous version of our app written in Delphi 6.
There must be something simple I'm missing here. Any ideas?