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: Mo 15.05.06 17:10 
ich will das sobald der cursor soll eine procedur aufgerufen wird. wie mach ich das?

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

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mo 15.05.06 17:14 
du willst das sobald der cursor soll ?
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 15.05.06 17:14 
Ich glaub du hast die Frage vergessen :D :mrgreen:
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 15.05.06 17:19 
Lest doch mal die Überschrift :rofl:
Er meint bestimmt, wenn der Cursor das Formular verlässt, dann soll eine Procedure ausgeführt werden ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mo 15.05.06 17:20 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
  p: Tpoint;
begin
  getcursorpos(p);
  if p.x > form1.left + form1.width then showmessage('rechts raus')
{...}
end;


sollte so klappen
nullplan001
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 212

Win 2000 Professional, Debian Linux 4.0 (Etch,Stable)
Pascal (FreePascal 2.0.2, TurboPascal 7.0), C(++) (G++/GCC 3.4.2 + MinGW), Java (JDK 1.5.0_07), PHP (PHP 5.1.4)
BeitragVerfasst: Mo 15.05.06 17:28 
Für solche Vergleiche gibt es Mengen. Das sieht dann so aus:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
var
  p: Tpoint;
begin
  getcursorpos(p);
  if not (p.x in [Form1.left..(Form1.left + Form1.width)]) then showmessage('Formular seitlich verlassen');
  if not (p.y in [form1.top..(Form1.top + Form1.height)]) then shwomessage('Formular nach oben oder unten verlassen');
{...}
end;

Das sollte alle fragen klären.
Tschö,
nullplan

_________________
Ich fahr' nicht selber, weil ich festgestellt habe: ich fahre zu emotional. Bin 180 gefahren wo 30 erlaubt war... -- Jürgen von der Lippe
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Mo 15.05.06 17:48 
ich muss dich leider entäuschen, aber das geht nicht :wink:
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Mo 15.05.06 19:23 
Etwas ist in beiden Versionen falsch, ob sie nun gehen oder ned, iht bekommt nach jdeer Abfrage wieder die Meldung dass die Maus draußen ist, ich nehme aber mal an, dass der die >Procedure ausführen will wenn die maus die Form verlässt - einmal - und dann erst wieder wenn sie sie wieder verlässt. Also solltest ihr noch ne Booleanvariable einbaun o.ä. :wink:

Ne klare Fragestellung wäre hier aber sicherlich hilfreich ;-)