Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi HotKey funzt nicht, wenn Webbrowser clClient auf Form liegt (https://www.delphipraxis.net/76207-hotkey-funzt-nicht-wenn-webbrowser-clclient-auf-form-liegt.html)

torud 31. Aug 2006 12:01


HotKey funzt nicht, wenn Webbrowser clClient auf Form liegt
 
Hallo Wissende,

ich habe ein Formular, auf dem nur eine Webbrowser-Komponente liegt. Ich habe dem Formular selbst im OnKeyDown folgendes zugewiesen, da ich einen Dialog per HotKey oder per ShortCut öffnen muss:

Delphi-Quellcode:
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
    if Key = VK_F9 then settings.ShowModal;
end;
Leider funktioniert das nicht. Was kann ich tun, um den Dialog doch noch angezeigt zu bekommen?

Meflin 31. Aug 2006 12:03

Re: HotKey funzt nicht, wenn Webbrowser clClient auf Form li
 
Verstehe ich das richtig, dass du die Taste F9 als Hotkey vergeben willst? Ich glaube das geht garnicht :gruebel: Da müsstest du sowas wie Strg + F9 nehmen.


torud 31. Aug 2006 12:05

Re: HotKey funzt nicht, wenn Webbrowser clClient auf Form li
 
Ich habe auch schon ein Popup-Menü dem Formular ginzugefügt und dort einen Eintrag angelegt mit einem ShortCut. Das funzt auch nicht. Vielleicht weil der Webbrowser Client ist und alles verdeckt, somit das Form nie den Focus erhält?

torud 31. Aug 2006 12:54

Re: HotKey funzt nicht, wenn Webbrowser clClient auf Form li
 
Problem erkannt - Gefahr gebannt.

Man kann natürlich nur Shortcuts benutzen, die NICHT vom IE bereits benutzt werden. Habe es mal auf Strg + Z geändert und siehe da, es funktioniert.

Meflin 31. Aug 2006 13:23

Re: HotKey funzt nicht, wenn Webbrowser clClient auf Form li
 
Zitat:

Zitat von torud
Man kann natürlich nur Shortcuts benutzen, die NICHT vom IE bereits benutzt werden. Habe es mal auf Strg + Z geändert und siehe da, es funktioniert.

F9 ist aber kein IE-Shortcut :mrgreen: bei mir jedenfalls nicht... ich glaube es lag einfach daran dass man die F-Tasten nicht allein als Shortcut vergeben kann ;)



Alle Zeitangaben in WEZ +1. Es ist jetzt 17:35 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz