Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic fitsizetotext sometimes hangs (Read 5356 times)
chrise
YaBB Newbies
*
Offline



Posts: 18
Joined: Dec 8th, 2006
fitsizetotext sometimes hangs
Mar 27th, 2007 at 10:55am
Print Post  
I have found that resizing a box using fitsizetotext can hang if the text is less one character.

I have also found that fitsizetotext also hangs if the text box is manually resized and then fitsizetotext is called.  This mainly happens if the box is larger in vertical direction.

We resize the text using the option keepheight.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: fitsizetotext sometimes hangs
Reply #1 - Mar 27th, 2007 at 11:11am
Print Post  
Hello,

What do you mean by "text is less one character"?  an empty string?

Thank you,
Stoyan
  
Back to top
 
IP Logged
 
chrise
YaBB Newbies
*
Offline



Posts: 18
Joined: Dec 8th, 2006
Re: fitsizetotext sometimes hangs
Reply #2 - Mar 27th, 2007 at 11:18am
Print Post  
Sorry.  I mean empty or a single character.  This is easy to code round.  However it's not so easy on the other one with a large box.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: fitsizetotext sometimes hangs
Reply #3 - Mar 27th, 2007 at 11:33am
Print Post  
one more question - do you use styled text and/or polygonal text layout?

Thanks,
Stoyan
  
Back to top
 
IP Logged
 
chrise
YaBB Newbies
*
Offline



Posts: 18
Joined: Dec 8th, 2006
Re: fitsizetotext sometimes hangs
Reply #4 - Mar 27th, 2007 at 11:39am
Print Post  
Both are set to false.
  
Back to top
 
IP Logged
 
chrise
YaBB Newbies
*
Offline



Posts: 18
Joined: Dec 8th, 2006
Re: fitsizetotext sometimes hangs
Reply #5 - Mar 27th, 2007 at 11:41am
Print Post  
I have set PolyTextLayout to true and it is working fine now.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: fitsizetotext sometimes hangs
Reply #6 - Mar 27th, 2007 at 11:49am
Print Post  
Thank you, we can reproduce that with an empty string. Could you also post the text and coordinates for the manually resized box?

Stoyan
  
Back to top
 
IP Logged
 
chrise
YaBB Newbies
*
Offline



Posts: 18
Joined: Dec 8th, 2006
Re: fitsizetotext sometimes hangs
Reply #7 - Mar 27th, 2007 at 12:06pm
Print Post  
Text :    wewef
X:         17.5
Y:         7.5
Width:   15
Height:  45

Fontsize:           8.25
Fontstyle:          bold
Fontname:         Tahoma
Fontunit:           point
Fontheight:        14
Sizeinpoints:     8.25


Hope this helps.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: fitsizetotext sometimes hangs
Reply #8 - Mar 29th, 2007 at 10:31am
Print Post  
This should be fixed now. If anyone needs the updated dlls urgently, please contact us by email. Or as a workaround temporarily enable PolyTextLayout before calling the FitToText(KeepHeight) method.

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