Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic change default shape (Read 2644 times)
T.Pascal
Guest


change default shape
Mar 2nd, 2006 at 8:37am
Print Post  
hi , i'd like to know how to change the default shape at the begining. By default , we have "roundRectange", and i'd like to change it for the shape "Actor".
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: change default shape
Reply #1 - Mar 2nd, 2006 at 9:10am
Print Post  
Hi, you can set

fc.DefaultShape = ShapeTemplate.FromId("Actor");

in the form_Load event handler or the Form's contructor.

Stoyan
  
Back to top
 
IP Logged
 
t.Pascal
Guest


Re: change default shape
Reply #2 - Mar 2nd, 2006 at 10:29am
Print Post  
the code don't seems to work

i'm working with visualBasic.NET

i've putted " Me.fc.DefaultShape = ShapeTemplate.FromId("Decision") " in  #Region " Windows Form Designer generated code "
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: change default shape
Reply #3 - Mar 2nd, 2006 at 10:35am
Print Post  
In order to use the ShapeTemplate definitions, you must also set BoxStyle to 'Shape'.
  
Back to top
 
IP Logged
 
T.Pascal
Guest


Re: change default shape
Reply #4 - Mar 2nd, 2006 at 10:55am
Print Post  
yeah , it work
" Me.fc.BoxStyle = BoxStyle.Shape "was the line missing
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint