Hello,
I'm wondering if it's getting confused by having a set of coordinates and wordwrap and then you get an if statement. What are the first set of coordinates for?
textobject.PosY = 325
textobject.ScaleX = 1.0
textobject.ScaleY = 1.0
textobject.WordWrapWidth = 1720.00
Is the default to have 1 line? Does it go more than 3 lines?
i have found that it's easiest to start with the largest and work your way down. With the last statement being the lowest number. Below starts with if 3 lines, then 2 lines otherwise it will be one line and do this.
dim textobject as xpTextObject
self.GetObjectByName("Tweet"�, textobject)
if textobject.LineCount = 3 then
textobject.PosY = 335
textobject.ScaleX = .7
textobject.ScaleY = .7
textobject.WordWrapWidth = 2418.00
else if textobject.LineCount = 2 then
textobject.PosY = 320
textobject.ScaleX = 0.950
textobject.ScaleY = 0.950
textobject.WordWrapWidth = 1800.00
Else
textobject.PosY = 280
textobject.ScaleX = 1.0
textobject.ScaleY = 1.0
textobject.WordWrapWidth = 1773.00
end if
I'm just unclear what the first set of actions are for?
Does this help?
#XPression