OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 24-11-2004, 16:27
Posts: n/a
Default CD 10, VBA not returning true outline width

Anyone encountered the problem in CD10 VBA where an outline that started out as not scaleable is rescaled, then set to scale with image will show it's true width in the task bar, but VBA will not return the true width?

For example. I have a rectangle and apply a 5mm thick outline around it.

The task bar and VBA (OLWidth = ActiveShape.Outline.Width) will show the outline as 5mm. OLWidth will = 5mm

Rescale the rectangle and the task bar and VBA still show 5mm outline width.

Now, change the outline to "scale with image", and the task bar will still show 5mm, but VBA will return something like 12.5mm.

Changing the outline back to not scaleable and the task bar and VBA will show 5mm. OLWidth will = 5mm

Anyone seen this? Anyone know a way around it? ATM I'm looping through all shapes, checking if outlines are scale with image and temporarily changing them to scale with image if they aren't, getting the width attribute then changing them back.

Unless there is a bug in CD10 VBA, there must be a more direct way.

I'll have to push the boss a bit harder for CD12 I think (or is it 13 now?)
Reply With Quote
Old 24-11-2004, 17:09
Alex's Avatar
Alex Alex is offline
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: CD 10, VBA not returning true outline width

Yes, there might be a bug in VBA code which doesn't handle scaled outlines properly. However as I mentioned earler, CorelDRAW 11 and 12 does seem to work correctly (at least according to my tests). So, push harder on your boss
Reply With Quote

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
Default Outline Width Anonymous General 2 13-01-2005 15:25
Hairline width outline problems Steve CorelDRAW/Corel DESIGNER VBA 7 21-07-2004 18:24
Apply Outline - Scale with Image geopig CorelDRAW/Corel DESIGNER VBA 4 06-05-2004 07:23
replacing duotone bitmap please_reboot CorelDRAW/Corel DESIGNER VBA 4 18-04-2004 22:30
Detect if VBA is installed (an answer and a question) reanan CorelDRAW/Corel DESIGNER VBA 3 04-12-2002 14:35

All times are GMT -5. The time now is 03:59.

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