OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 19-11-2004, 16:06
chinkyk
Guest
 
Posts: n/a
Default Arch text

i want to find a drawn arc in the document and add text on it.can this be done through a macro.how?
attached is a cdr file .
Attached Files
File Type: cdr arc.cdr (13.3 KB, 391 views)
Reply With Quote
  #2  
Old 20-11-2004, 00:24
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: Arch text

Here you go...

Code:
Sub FitText()
    Dim sArc As Shape
    Dim sText As Shape
    Dim eff As Effect
    
    Set sArc = ActiveLayer.CreateEllipse2(4.068854, 1.299146, 1.923594, -1.923594, 350#, 190#, False)
    Set sText = ActiveLayer.CreateArtisticText(0, 0, "Hello world!  This is a test.....********")
    
    Set eff = sText.Text.FitToPath(sArc)
    eff.TextOnPath.Placement = cdrCenterPlacement
End Sub
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text ENCODE Craig Tucker CorelDRAW/Corel DESIGNER VBA 10 26-01-2005 13:59
format text dialog box implement graphicdesigner CorelDRAW/Corel DESIGNER VBA 5 22-12-2004 13:37
Getting the center X on a text shape Rick Randall CorelDRAW/Corel DESIGNER VBA 4 03-08-2004 18:27
Reset text after text compression. Bellekom CorelDRAW/Corel DESIGNER VBA 2 05-05-2004 06:14
Placing a custom envelope on Text larrypanattoni CorelDRAW/Corel DESIGNER VBA 3 23-04-2003 09:18


All times are GMT -5. The time now is 17:31.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com