Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Shortcut blockiert Taste ??? (https://www.delphipraxis.net/48396-shortcut-blockiert-taste.html)

QuickAndDirty 24. Jun 2005 15:30


Shortcut blockiert Taste ???
 
Ich habe auf einem Formular ein Button mit der Caption := '&Aktualisieren'
Leider ist in einem Eigenen Textfeld seit dem das 'a' und 'A' Charcode 65 also Blockiert.
Wie kann ich trotzdem ein 'A' eingeben?

Das 'A' kommt im übrigen in Keydown an.
KeyPress geschieht jedoch nicht mehr

QuickAndDirty 27. Jun 2005 09:44

Re: Shortcut blockiert Taste ???
 
Delphi-Quellcode:
procedure TStdLookUpControlEdit.WMGetDlgCode(var Msg: TWMGetDlgCode);
begin
  // !!!!!!!!!!!!Blockiert das wechseln zum nächsten control durch Pfeiltasten..
  // ...der fokus bleibt bei dem Control!!!!!!!!!!!!!!
  Msg.Result := DLGC_WANTARROWS;

  // !!!!!!!!!!!!Blockiert das wechseln zum nächsten control in der tab Order...
  // ...der fokus bleibt bei dem Control!!!!!!!!!!!!!!
  if assigned(lookUp) and Assigned(lookup.Grid) then
    Msg.Result := Msg.Result or DLGC_WANTTAB;

  // !!!!!!!!!!!Verhindert das Blockieren von Shortcut-Buchstaben!!!!!!!!!!!!!!
  if assigned(lookUp) and Assigned(lookup.Grid) then
    Msg.Result := Msg.Result or DLGC_WANTCHARS;
end;
Problem mit DLGC_WANTCHARS gelöst.


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:24 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