Autor Beitrag
Elayla
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79



BeitragVerfasst: So 15.06.03 00:57 
Eigentlich, so steht es in der Delphi-Hilfe sollte dieser Befehl funktionieren.
If Key=VK_LButton Then ...
Delphi meckert auch nicht, jedoch funktioniert das im Programm nicht.
Genauso wenig funktioniert bei OnMouseDown Button=mbLeft nicht.
Wieso?
Geht das nicht mit allen Mäusen oder muss ich da erst irgendwas initialisieren?
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Di 17.06.03 16:19 
lol, im onkey ereignis wird es echt viel bringen wenn du die maus taste abfragen willst:)
baue sie mal ins MouseDown ereignis ein. und dann sieht dass so aus(glaube ich)
ausblenden Delphi-Quelltext
1:
  if Button = VK_LBUTTON then....					

_________________
MFG
Michael Springwald, "kann kein englisch...."
breakdancer1111
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 148

Windows 7 Home Premium 64Bit
Delphi XE2 Starter
BeitragVerfasst: Di 17.06.03 19:12 
Zitat:
ausblenden Quelltext
1:
if Button = VK_LBUTTON then....					


Das wird nicht ganz klappen.
Versuch lieber mal.

ausblenden Quelltext
1:
if Button = mbleft then ...					


Für die Rechtemaustaste einfach mbright
nehmen. :D
Elayla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79



BeitragVerfasst: Di 17.06.03 19:47 
Das hatte ich ja versucht, aber kanns sein das der Befehl über einer DXDraw-Fläche nicht funktioniert?

[Edit]

Mist ok das geht so nicht über nem DXDraw :cry:
Kennt jemand ne gute (einfache) Methode das über einem DXDraw abzufragen?

_________________
Das wahre Ziel des Krieges ist der Frieden.
Sun Tzu
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Di 17.06.03 19:57 
dxdraw1.onKeyDown:)

@breakdancer1111
hast recht :)

_________________
MFG
Michael Springwald, "kann kein englisch...."
Elayla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79



BeitragVerfasst: Di 17.06.03 19:59 
Hmpf manchmal isses so einfach das man wirklich nicht drauf kommt *lol*
Danke für den schnellen Rat ^^

_________________
Das wahre Ziel des Krieges ist der Frieden.
Sun Tzu