Autor Beitrag
kampfkoloss23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96



BeitragVerfasst: So 26.01.03 18:48 
wenn ich die linke, aber auch NUR die linke Maustaste über einem Canvas gedrückt halte, kommen meine Tastaturbefehle nicht mehr an

Woran liegt das??
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: So 26.01.03 21:55 
Warscheinlich geht das beim draggen nicht. Keine Ahnung.

Aber probier's mal, indem du die Mesasges direkt abfängst (Wm_KeyDown bzw. Wm_KeyUp). Das klappt auf jeden Fall. Am einfachsten dendest du alle Keystrokes an OnKeyDown bzw. OnKeyUp.
kampfkoloss23 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96



BeitragVerfasst: So 26.01.03 23:58 
danke :lol:

Die onkey down usw. Ereignisse auf Komponten find
ich schon lange zum kot :puke: zen
kampfkoloss23 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96



BeitragVerfasst: Fr 31.01.03 20:23 
wie fängt man die Nachrichten ab?

Gibts so was wie

onwindowsmessge??
if message = onkey down then
do
if key = ...

in welche kombo soll ich das ganze packen, oder wie macht man
das am besten?
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Fr 31.01.03 20:37 
Messages abfange geht so:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
private
  procedure WmKeyDown(var M: TMessage); Message Wm_KeyDown;

{...}

implementation

procedure TForm1.WmKeyDown(var M: TMessage);
begin
 {...}
end;