Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic why Invisible arrow are clickable? (Read 4457 times)
x-fgi
YaBB Newbies
*
Offline



Posts: 35
Joined: Aug 14th, 2009
why Invisible arrow are clickable?
Sep 2nd, 2009 at 3:59pm
Print Post  
Him I notice that the event "ArrowClicked" is fired even when I set arrow.visible= false....
isn't it strange?
Moreover, I have a case with two node linked together with two arrows that, depending on layout style, are occasionally drawn exactely overlapped....
now if I set one invisible, and I click one the remaining arrow( that i left visible)  ....then  the ArrowClicked is fired, but the arrow parameter may result to be ... the invisible Arrow!! Shocked
at present when I set an arrow not visible I set it
Zbottom... but this is not the definitive solution....

it seem very strange to me that invisible object remains click-able Sad

Franco
  

Franco
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: why Invisible arrow are clickable?
Reply #1 - Sep 2nd, 2009 at 5:08pm
Print Post  
Hi,

Try setting fcx.EventFlags(fNoClickEventsForLockedObjs) = True. I believe this flag works both for the Locked and Visible properties.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
x-fgi
YaBB Newbies
*
Offline



Posts: 35
Joined: Aug 14th, 2009
Re: why Invisible arrow are clickable?
Reply #2 - Sep 3rd, 2009 at 9:33am
Print Post  
Hi Stoyo,
unfortunately fNoClickEventsForLockedObjs  doesn't help me... Cry 


I checked that also invisible Boxes fire the Dlbclick events..... this is a real  problem: i click on the white canvas, thinking that there is nothing there  and it perform the action of the invisible box....  Shocked
  

Franco
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: why Invisible arrow are clickable?
Reply #3 - Sep 3rd, 2009 at 3:14pm
Print Post  
It worked as expected in my test project; have you set that flag to true? In VB6:

fcx.EventFlags(fNoClickEventsForLockedObjs) = True

Stoyan
  
Back to top
 
IP Logged
 
x-fgi
YaBB Newbies
*
Offline



Posts: 35
Joined: Aug 14th, 2009
Re: why Invisible arrow are clickable?
Reply #4 - Sep 3rd, 2009 at 3:35pm
Print Post  
Hi Stoyo,
I use Delphi:  I set the flag in OnFormCreate Event...

procedure TChartRelParForm.FormCreate(Sender: TObject);
begin
  FlowChart1.EventFlags[fNoClickEventsForLockedObjs] := True;
.....

but I still be able to click on invisible objects....
  

Franco
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: why Invisible arrow are clickable?
Reply #5 - Sep 3rd, 2009 at 5:49pm
Print Post  
Could you compile a test project that sets the flag and adds several invisible boxes, and email it to support@mindfusion.eu? Then we'll trace the click handling using a debug build of the control.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint