Autor Beitrag
Zombimode
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

Win 98, Win XP

BeitragVerfasst: Mo 06.12.04 20:43 
Ich scheitere mal wieder an der Formulierung einer einfach Anweisung.

Ich möchte wissen, ob mit der linken Mausstaste doppelt geklickt wurde, also schrieb ich:
ausblenden Delphi-Quelltext
1:
if Shift = ssDouble then...					


Als das nicht ging, hab ich noch ein "set of" reingeschrieben und dann ein wenig "herrumexperimentiert", bin aber nicht auf die richtige Syntax gekommen.

Kann mir jemand sagen, wie man das korrekt hinschreibt?
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mo 06.12.04 20:51 
2 Möglichkeiten - je nachdem was du willst:
ausblenden Delphi-Quelltext
1:
if Shift = [ssDouble] then ...					

ausblenden Delphi-Quelltext
1:
if ssDouble in Shift then ...					

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Zombimode Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

Win 98, Win XP

BeitragVerfasst: Mo 06.12.04 21:38 
Jap, das Erste tuts, danke :-)