Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Thu Oct 19, 2017 8:02 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: used the CurveShape
PostPosted: Wed Mar 20, 2013 11:37 am 
Offline

Joined: Wed Oct 24, 2012 2:15 pm
Posts: 4
I'm used curveShape and i want to add text .
How can do it?



dim c as new CurveShape

c.ControlX(0) = 40
c.ControlY(0) = 0

c.Order = 2
c.x = 0
c.y = 0
c.X2 = tox - fromx - 1
c.Y2 = toy - fromy

c.ControlX(1) = c.x2 - 40
c.ControlY(1) = c.Y2

c.Border = 100
c.Segments = 10
c.BorderColor = borderColor
c.BorderWidth = 4

g.DrawObject c, fromx + 1, fromy

c.BorderColor = fillColor
c.BorderWidth = 2

g.DrawObject c, fromx + 1, fromy


Top
 Profile  
Reply with quote  
 Post subject: Re: used the CurveShape
PostPosted: Thu Mar 21, 2013 9:43 am 
Offline
User avatar

Joined: Thu Sep 10, 2009 2:50 am
Posts: 418
Location: Santa Cruz, CA, USA
alexandersazu wrote:
I'm used curveShape and i want to add text .
How can do it?

Do you mean text bent along the CurveShape path? There's no built in function for that, I think you'll need to compute the path points and do the math to position each character yourself. But there might be some declares or plugins to do it.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group