Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Basic PopupMenu is not working. (Read 2262 times)
parkwonwoo
Junior Member
**
Offline


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
Basic PopupMenu is not working.
Dec 10th, 2006 at 11:13pm
Print Post  
Basic PopupMenu is not working.

- My Code is here:
Code
Select All
procedure TForm1.FormCreate(Sender: TObject);
begin
  FCX1.PopupMenu:=PopupMenu1;
end;
 



- What's wrong ?.
???
- Thanks ins advances.
  

OS: WinXP sp2&&RAD: Borland Delphi7, C++Builder6, JBuilder9&&FrameWork: VCL+Win32 or J2SE&&FCX: FCX 4.1.x
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Basic PopupMenu is not working.
Reply #1 - Dec 11th, 2006 at 6:52am
Print Post  
PopupMenu is not a FlowChartX property, but Delphi adds it automatically and probably tries to implement it by handling mouse events sent to the FlowChartX window. Since FlowChartX does some complex mouse handling, Delphi cannot detect the mouse operations and won't display the menu. You will need to handle one of the Clicked events raised by the control, e.g. BoxClicked, TableClicked, DocClicked and show the menu from the event handler.

Stoyan
  
Back to top
 
IP Logged
 
parkwonwoo
Junior Member
**
Offline


Open the Podbay Doors
HAL!

Posts: 61
Joined: Dec 8th, 2006
Re: Basic PopupMenu is not working.
Reply #2 - Dec 12th, 2006 at 1:45am
Print Post  
Thanks.

Code
Select All
procedure FCXClicked(Sender: TObject; x, y: integer);
begin

  PopupMenu1.Popup(x, y);

end;
 

  

OS: WinXP sp2&&RAD: Borland Delphi7, C++Builder6, JBuilder9&&FrameWork: VCL+Win32 or J2SE&&FCX: FCX 4.1.x
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint