------------------------------

Message: 5
Date: Fri,  5 Nov 2004 21:03:23 +0200
From: "[EMAIL PROTECTED]"     <[EMAIL PROTECTED]>
Subject: Displaying vertical text
To: "use-revolution" <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=iso-8859-1

Hello everybody,

I need to display a text verticaly, this text cannot be an image as it comes from a variable. Is
there any way to rotate a field, label, ?


Thanx

Regards

AurČlien


AurElien,

This may be overkill, but Turtle Graphics is one option. If your text variable is "tMessage" then in TG you would use something like:


on mouseUP put "This is a vertical line" into tMessage put the number of chars in tMessage into tNum put -100,100 into startHere -- Your choice put 12 into charSeparation -- Your choice startTurtle penUp setHeading -90 setXY startHere repeat with i = 1 to tNum forward charSeparation label char i of tMessage end repeat end mouseUP


Or, for something more interesting, to write the message along a semi-circular path:


on mouseUP
  put "This is a semi-circle" into tMessage
  put the number of chars in tMessage into tNum
  put 150 into R
  startTurtle
  setHeading -90
  penUp
  repeat with i = 1 to tNum
    forward pi*R/tNum -- Spaces characters evenly on the semi-circle
    left 180/tNum -- Takes a semi-circular path
    label char i of tMessage
  end repeat
end mouseUP

You can find TG on the RR web site at: http://downloads.runrev.com/stacks_apps/

Jim

_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to