Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramLink - Text invisible (Read 4836 times)
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
DiagramLink - Text invisible
Dec 16th, 2011 at 11:06am
Print Post  
Hello,

i have a question for link.Text.

I want to store a string in link.Text but i don't want to show it always in my diagram.

Code
Select All
link.TextBrush = Brushes.Transparent 


works, but i see a white gap in my link (where normally stands my link.Text).

Do you have a possibility to set the text label invisible?

Best regards,
Amosius
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLink - Text invisible
Reply #1 - Dec 16th, 2011 at 12:28pm
Print Post  
Hi,

I think there's background drawn for labels only when links' TextStyle have the default value "center". Change TextStyle to a different value and the background should disappear.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: DiagramLink - Text invisible
Reply #2 - Dec 19th, 2011 at 2:01pm
Print Post  
Works fine, thank you Stoyan.

Amosius
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: DiagramLink - Text invisible
Reply #3 - Dec 19th, 2011 at 4:59pm
Print Post  
All DiagramNodes use InplaceEdit.
For my DiagramLinks i would like to disable this feature. I could't find an property. Setting size of InplaceEditable.GetEditRect to 0,0,0,0 does not work fine.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLink - Text invisible
Reply #4 - Dec 20th, 2011 at 7:44am
Print Post  
You could disable AllowInplaceEdit and call BeginEdit from the NodeDoubleClicked event handler.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: DiagramLink - Text invisible
Reply #5 - Jan 5th, 2012 at 10:37am
Print Post  
Hello Stoyan,

thank your for your message. I use BeginEdit for my nodes and connectors.
Is there something similar for headers? I think that Headers are currently not supported.
I tried BeginEdit with my headers and subheaders and my code runs into
eventhandler enterInplaceMode, but it does not start the inplaceEditMode for the user.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramLink - Text invisible
Reply #6 - Jan 5th, 2012 at 11:57am
Print Post  
Hi Amosius,

The BeginEdit method works for Header objects too. You might not need it, since editing of headers is enabled through a separate property - LaneGrid.AllowInplaceEdit instead of Diagram.AllowInplaceEdit.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Amosius
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 75
Joined: Sep 2nd, 2010
Re: DiagramLink - Text invisible
Reply #7 - Jan 5th, 2012 at 12:41pm
Print Post  
Ahhhh fantastic Smiley Thank you.

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