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 12-04-2010, 05:54
basti.schneider
Guest
 
Posts: n/a
Default Ghost Outlines (in Corel X3)

Hello,

after a long, long time of trying I have no solution for the following problem:
I am creating whole files via VBA (>100.000 per year).
These files can contain texts with outlines.
The users are editing the created files afterwards.
They may decide to delete some of the created outlines.
They may also resize the shapes.

The problem is:
When I create a text with outline in VBA and afterwards the user deletes the outline and later resizes the shape THE OUTLINE WILL REAPPEAR.

This happens only, if the outline has set ScaleWithShape to true.

So the scale-with-shape-outlines of texts seem to be internally corrupted.

Demo-Source:

Dim sh As Shape
Set sh = ActiveLayer.CreateArtisticText(0, 0, "HELLO WORLD")
sh.Outline.Type = cdrOutline
sh.Outline.Width = 0.1
sh.Outline.ScaleWithShape = True

Now delete the shape and resize it - voilà.

I tried lots of things:
- copying the outline per "outline.CopyAssign" from another shape
- creating the text shape per ActiveVirtualLayer.CreateArtisticText
- using CreateParagraphText
- using the method shape.SetOutlineProperties
- using shaperange.setOutlineProperties

Nothing helps.

Does anyone know a trick how to create reliably editable text with outlines?

Thanks,

Basti

PS: is this bug removed in later versions? I bet 10 bucks that it is still there in X15.

PPS: If you have an existing text and set ScaleWithShape=true per VBA you get the same result: Delete the outline, resize the shape, *kaboom*.
Reply With Quote
  #2  
Old 13-04-2010, 14:30
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,790
Blog Entries: 13
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default X5

I will take that bet. This works as expected in X5, the outline is not restored when scaling the text. Feel free to send me my 10 bucks. ;-)

-Shelby
Reply With Quote
  #3  
Old 14-04-2010, 07:31
basti.schneider
Guest
 
Posts: n/a
Default

Oh this is SO good news! Thanks a lot for trying it out!

Reply With Quote
  #4  
Old 14-04-2010, 11:31
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

hmm...
ok. Hope you got a really good printer Shelby.
Reply With Quote
  #5  
Old 21-04-2016, 05:52
basti.schneider basti.schneider is offline
Junior Member
 
Join Date: Apr 2010
Posts: 8
Default What the real problem was

I just incidentially found this old thread.

Today I know what the problem was:

I deleted the outline via

sh.Outline.width = 0

instead of

sh.Outline.SetNoOutline

If you try to delete an outline via "width = 0" then the outline reappears after rescaling.
Unfortunately I didn't state in the original post HOW I deleted the outline!
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
Scale Outlines to Image, Ver. 11 scott@tasteofparadiseice. Macros/Add-ons 3 14-05-2009 12:05
Problem with Outlines knowbodynow CorelDRAW/Corel DESIGNER VBA 4 24-05-2008 21:36
Random Outlines TTerrell General 2 18-06-2007 09:06
Bounding Guides, with & without Outlines Hernán New product ideas 0 21-01-2004 11:59
Contour outlines mikev CorelDRAW/Corel DESIGNER VBA 0 16-07-2003 16:38


All times are GMT -5. The time now is 01:18.


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