Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 13.01.07 11:28 
Ich will in meinem Richedit wenn ich strg + Enter eingeb das etwas bestimmtes passiert nur ich hab keinen Plan wie shift state funktioniert und in der delphihilfe ist auch kein gutes beispiel angegeben von denen ich mir das ganze ableiten kann.

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Manina
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 44

Win 7 Pro
RAD Studio 2010 Pro
BeitragVerfasst: Sa 13.01.07 11:34 
Ich denke mal so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
// OnKeyDown:
case Key of
  VK_RETURN: begin
    if ssShift in State then blabla
    else if ssCtrl in State then bleble
    else blibli;
  end;
end;


zumindest in etwa so, hab die genaue Syntax jetzt nicht im Kopf :oops:

_________________
Gates, oder Gates nicht ?
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 13.01.07 11:37 
und wenns mehrere Tasten sind z.b: ssShift und ssstrg???

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Sa 13.01.07 11:43 
Dann musstes so machen:

Imho heit das nicht State sondern Shift.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
// OnKeyDown:  
case Key of  
  VK_RETURN: begin  
    if (ssShift in Shift) (ssSTRG in Shift) then blabla  
    else blibli;  
  end;  
end;

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 13.01.07 11:44 
OK danke!!!

lg el

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.