F1 opens help twice

You found an error in the program ? Report it here
Post Reply
elman
Posts: 226
Joined: 2005-01-03 09:05:35

F1 opens help twice

Post by elman »

Hi,

I accidentaly ;) pressed F1 hey and help opened twice. I tried it on my other computer and same thing happende.

Elman
antp
Site Admin
Posts: 9665
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Hi,

I also noticed this problem in my other program, Ant Renamer. I'll try to correct that ;)
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

This bug is still there, is it ? I noticed it while working on shortcuts ;)
antp
Site Admin
Posts: 9665
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

I haven't searched for a workaround yet.
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

It seems to work properly if you change function OnAppHelp on unit main.pas to

Code: Select all

function TMainWindow.OnAppHelp(Command: Word; Data: Integer; var CallHelp: Boolean): Boolean;
begin
  if Data <> 1005 then
    LaunchHelp(Data);
  CallHelp := False;
  Result := False;
end;
At least it does not open two helpfiles anymore and shows same behaviour as before on the other windows.. (i.e. on import/export window F1 works, on scripting window not)
antp
Site Admin
Posts: 9665
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Thanks, that could indeed by a good solution, as the problem occurs for the help command of the main form itself. But instead of 1005 maybe it is better to put Self.HelpContext, in case it is changed ;)
bad4u
Posts: 1148
Joined: 2006-12-11 22:54:46

Post by bad4u »

Done ;)
Post Reply