Autor Beitrag
matzerg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win XP
D6 Pers
BeitragVerfasst: Mi 20.10.04 22:25 
ich wollte das so machn das ich bei einem Rechtsklick generell nachlade

gibt es irgeneine möglichkeit das zu überprüfen???
sourcehunter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Do 21.10.04 11:21 
Du krigst das Klick-Ereignis und musst den MouseButton auf mbRight oder so abfragen.

_________________
Linux und OpenSource rulez!
matzerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win XP
D6 Pers
BeitragVerfasst: Do 21.10.04 11:27 
hmm aber wenn ich das in Form1.click reinschreibe (jetzt mal abgesehen davon das ich keine ahnung habe welchen befehl du damit meinst) dann gibt der doch nur ein true wenn ich auf die Form1 klicke oder??
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Do 21.10.04 11:48 
Ja, dann kriegst du das Event nur, wenn du auf Form1 klickst.

Daher: Wie sieht denn deine Anwendung aus? Hast du das Hauptfenster maximiet (auf den ganzen Bildschirm)? Dann klappt es mit dem Event der Form. Wenn die Anwendung nicht maximiert ist (also man rundrum noch was von Windows sieht), solltest du nicht alle Rechtsklicks für dein Programm abzweigen, weil der Rechtsklick normalerweise ein Kontextmenü öffnet, z.B. das des Desktops, und an das kommt man nicht mehr ran, wenn du sämtliche Mausklicks auf dich umleitest.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
matzerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win XP
D6 Pers
BeitragVerfasst: Do 21.10.04 11:50 
form1 ist maximiert...
soll ein kleines game werden ^^

ich habs mal so ausprobiert hat aber net gedfunzt
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.FormClick(Sender: TObject);
begin
  if tmousebutton(mbright) = true then
   begin
   close
   end;
end;
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Do 21.10.04 11:53 
Nimm mal das Ereignis OnMouseDown und schau dir die Parameter an.
matzerg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 70

Win XP
D6 Pers
BeitragVerfasst: Do 21.10.04 12:26 
juhuu es funzt

und jetzt mal einfach hier rein damit nachfolgende generationen auch noch wissen was man machen soll:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
if button = mbright then
   begin
   close
   end;
end;


hmmm aber wenn ich nun ein hintergrundbild einfügen möchte ... achja andere frage anderes thema....
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Do 21.10.04 13:02 
matzerg hat folgendes geschrieben:
und jetzt mal einfach hier rein damit nachfolgende generationen auch noch wissen was man machen soll:
matzberg hat folgendes geschrieben:
achja andere frage anderes thema....
Sehr löblich!

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert