Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Locked and Selectable? (Read 2257 times)
Phil Jacques
Junior Member
**
Offline


.NET 2.0 Rocks!!!

Posts: 70
Joined: Oct 20th, 2006
Locked and Selectable?
Nov 15th, 2006 at 1:00pm
Print Post  
Stoyan,

I am having another bumper, i need the boxes and arrows to be locked, but be able to detect user clicks on them?

Is it possible? Can a locked control fire a mouse click event?? Shocked

Secondly when i set visible=false on boxes, the disappear from the flowchart collection (Cannot use flowchart.FindBox). is this expected behavior? Roll Eyes

What is the way to find hidden boxes and make them visible. (Apart from foreach on all boxes on flowchart.boxes etc). ???

Thanks in advance

Cheers

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Locked and Selectable?
Reply #1 - Nov 15th, 2006 at 1:19pm
Print Post  
Hello Phil,

Yes, BoxClicked and ArrowClicked are raised for locked objects. It is also possible to set Box.EnabledHandles = None. That will let users select a box, but not move it.

FindBox should work pretty well with invisible boxes. Are you sure you don't have some boxes that share the same Tag? - that would make FindBox find only the first box.

Cheers,
Stoyan
  
Back to top
 
IP Logged
 
Phil Jacques
Junior Member
**
Offline


.NET 2.0 Rocks!!!

Posts: 70
Joined: Oct 20th, 2006
Re: Locked and Selectable?
Reply #2 - Nov 24th, 2006 at 1:18pm
Print Post  
Hello Stoyan,

Backl after a break ... holidaying at a small and remote lake ....  Smiley

EnabledHandles property is there on the box, but it is not documented i think. I could not find it in the chm.

Findbox on invisible is not working on my flowchart, let me check my code, i must be doing something which would be removing it from the flowchart.

It seems search is linear, since it takes some split seconds more to search, but its ok.

Thanks for the reply

Cheers

Phil
  
Back to top
 
IP Logged
 
Phil Jacques
Junior Member
**
Offline


.NET 2.0 Rocks!!!

Posts: 70
Joined: Oct 20th, 2006
Re: Locked and Selectable?
Reply #3 - Nov 24th, 2006 at 1:27pm
Print Post  
Quote:
EnabledHandles property is there on the box, but it is not documented i think.


I found the property on the Node class. Ignore this one ...

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Locked and Selectable?
Reply #4 - Nov 24th, 2006 at 2:10pm
Print Post  
Quote:
Backl after a break ... holidaying at a small and remote lake ....   


Caught any fish?  Wink
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint