Autor Beitrag
GameG
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

WIN7
D2007
BeitragVerfasst: So 22.04.07 19:08 
hiho!

wie kann ich das aufrufen vom popupmenü unterdrücken?

ich habe mehrere dynamische objekt und habe denen ein einziges popupmenu zugewiesen. jetzt will ich per rechtsklick 2 objekte mit einer gezeichneten linie (auf der canvas der form) verbinden.
nur wird dann jedes mal das popupmenu aufgerufen, wenn ich die rechte maustaste über dem zweiten objekt los lasse. und das will ich unterdrücken - kann mir da jemand helfen?

vielen dank für die aufmerksamkeit
--gg--
Spansky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 22

Win XP, Kubunto
Delphi 7
BeitragVerfasst: So 22.04.07 19:58 
Kannst du nich einfach das Popupmenü unsichtbar machen?
GameG Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

WIN7
D2007
BeitragVerfasst: So 22.04.07 20:12 
user profile iconSpansky hat folgendes geschrieben:
Kannst du nich einfach das Popupmenü unsichtbar machen?


ja und wie? ne visible-eigenschaft oder ne hide-methode hat das ding ja nicht ...
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 22.04.07 20:18 
In diesem Fall darfst Du nicht allen Objekten das Popup-Menü statisch zuordnen, sondern musst dieses im OnMouseUp-Handler selber mit PM.Popup anzeigen.

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: So 22.04.07 20:51 
Hallo

du kannst alternativ auch bei der zuwesiung der popups bleiben und Oncontextpopup der Kompos benutzen, über "handled" kannst du bestimmen, ob das popup angezeigt werden soll, oder nicht.

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
GameG Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34

WIN7
D2007
BeitragVerfasst: So 22.04.07 22:01 
hmm - vielen dank!

hat mir sehr geholfen ^^