Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic TableNode.Cell properties (Read 2587 times)
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
TableNode.Cell properties
Mar 25th, 2009 at 6:35pm
Print Post  
Hi,

I have two issues with TableNode.Cell.

  • .TextBrush is not working.
  • When set the .Font property ... in some rows the .Text disappears and I cannot find a  relationship between them. They are not the larger strings and have no special characters.


TableNode.Cell.Brush works fine.

How could I define a rich appearance using colors? I saw there is a property named "TextFormat" but I dunno if I could use it for that.

BTW DiagramLink.Dynamic is a madness, you can't manage the links when you have several, in the moment you move the TableNode the links change their anchors to the lateral sides Cheesy

Cheers.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: TableNode.Cell properties
Reply #1 - Mar 26th, 2009 at 10:06am
Print Post  
Hi,

The build from the PM page should use Cell.TextBrush. If you are using styled text, it does not display anything if the cell is not big enough to display at least one line of text. Try calling ResizeToFitText after setting all texts. Regarding dynamic links, what TableConnectionStyle are you using?

Stoyan
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: TableNode.Cell properties
Reply #2 - Mar 26th, 2009 at 12:06pm
Print Post  
thanks, the TextBrush works fine now Cheesy

About ResizeToFitText has a very bad effect:

http://triton.imageshack.us/Himg228/scaled.phpserver=228&filename=resizetofittex...

The row "Desc" dissapears but it's because the height, don't worry about that, what worry me is the horizontal displacement of the texts.

The TableConnectionStyle  I'm using is "Table".

Cheers.
  
Back to top
 
IP Logged
 
vtortola
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 104
Joined: Nov 26th, 2008
Re: TableNode.Cell properties
Reply #3 - Mar 26th, 2009 at 12:51pm
Print Post  
I've fixed the problem calculating dynamically the height of each row based in the formated text with the FormatedText class  8)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint