![]() |
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 |
Re: Shortcut blockiert Taste ???
Delphi-Quellcode:
Problem mit DLGC_WANTCHARS gelöst.
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; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:39 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz