Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Disable shape creation (Read 2232 times)
Bas
YaBB Newbies
*
Offline



Posts: 36
Joined: Apr 14th, 2006
Disable shape creation
Jun 2nd, 2006 at 10:24am
Print Post  
I created an application where the user is able to select a sertain shape and then create it by clicking on the flowchart. However, one of this shapes is a mouse cursor indicating a "no shape selected" state. Allthough I can avoid a box being created with a click on the flowchart, users are still able to create a box by dragging the cursor.

This behaviour is similar to many dev IDEs (ie Delphi, and probably VS2005(?))

Is it possible to somehow prohibit the user to create the new box by dragging the mouse, while still being able to edit (move, select etc) other objects that already exist?

I have seen the StaticMode property, but this makes the entire flowchart read-only.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Disable shape creation
Reply #1 - Jun 2nd, 2006 at 4:06pm
Print Post  
Hi,

Set FlowChart.Behavior to bhModify - that will let users select and move existing items but not to draw new ones. You can still handle drag-and-drop or mouse-click events to create boxes programmatically.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint