Thema: Delphi Pfeiltasten abfangen

Einzelnen Beitrag anzeigen

PeterKiers

Registriert seit: 15. Mär 2005
Ort: Wuppertal
42 Beiträge
 
#5

Re: Pfeiltasten abfangen

  Alt 19. Apr 2006, 10:00
Ich habe Das Problem selbst gelöst:

Code:
protected  
    { Protected declarations }   

 
    procedure wmkillfocus(var message : TMessage); message WM_KILLFOCUS;  
    procedure wmsetfocus(var message : TMessage); message WM_SETFOCUS;  
    procedure WMGetDlgCode(Var Msg:TWMGetDlgCode); message wm_getdlgcode;  

 
published  
    { Published declarations }   
   Property Align;  
   Property TabOrder;  
   Property TabStop default true;  

 
procedure TDSP3270.wmkillfocus(var message: TMessage);  
begin  
  inherited;  
  invalidate;  
end;  

 
procedure TDSP3270.wmsetfocus(var message: TMessage);  
begin  
  inherited;  
  invalidate;  
end;  

 
procedure TDSP3270.WMGetDlgCode(var Msg: TWMGetDlgCode);  
begin  
  inherited;  
  Msg.Result:=Msg.Result or dlgc_WantAllKeys or dlgc_WantArrows or dlgc_WantTab;  
end;
Peter Kiers
  Mit Zitat antworten Zitat