OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 11-01-2015, 11:48
Ales Ales is offline
Junior Member
Join Date: Sep 2007
Posts: 22
Unhappy X7 Default value pen color & thickness

Hi, I'm trying to upgrade from X4 to X7.

I encounter different problems with my extensive amount of VBA macro.

After eliminating one impossible font (scr0103_1l.ttf) that crashes X7, I'm fitting for 6 hours on default values for at least pen color and pen thickness.

In X4, when I drew a shape (VBA rectangle, segment and so on), the thickness and color was taken in my workspace (red and 0.01 pt).

In X7, I don't know where the values come from.

Is it possible to set these values for a document like Unit or reference point ?

If not, I need to modify all my macros
Reply With Quote
Old 11-01-2015, 21:48
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,782
Blog Entries: 11
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 X7


I did a quick test of this and I have it working. If you set the default Graphic Style to your 1.0 pt and red outline then say create a simple rectangle in VBA the rectangle has the correct outline.

Screenshot attached

Attached Images
Reply With Quote
Old 19-01-2015, 13:34
Ales Ales is offline
Junior Member
Join Date: Sep 2007
Posts: 22
Default X7

Thank you Shelbym for your test.

I encounter many problems with this upgrade with very often craches because I use extensively CSL files with a big collection of Symbols.
I encounter that kind of problem since first tests with X5 and X6 and I abandoned the upgrade. But now the upgrade becomes very necessary and I need to find the problems. I guess that kind of Symbol problems create artifacts around like pen and thickness.

If someone uses extensively Symbols, please could you tell me if you encounter similar problems. The crashes are exactly and always on the CreateSymbol function, ok after a while. I will qualify better with specific coding next weekend.

Every clue will help.

Reply With Quote
Old 31-01-2015, 07:39
Ales Ales is offline
Junior Member
Join Date: Sep 2007
Posts: 22
Default Problem solved - CorelDraw Bug

My problem is solved. It was a memory leak located in the CorelDraw's function : CreateSymbol. This problem have been creating since X5. It was ok before, and persist today in X7.

The problem occurs every time you create (instance) a bit more than 90 symbols in a file, at that time CorelDraw crashes.

The loophole consists to Revert the Symbols and to purge the symbol memory with the PurgeUnusedSymbols function.

I hope this will help.

I hope of course that Corel will fix this bug in future version.
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
How to set default C++ values abdoj CorelDRAW/Corel DESIGNER VBA 0 13-04-2010 13:42
Outline thickness Walter General 1 10-12-2005 13:39
default properties sejal01 CorelDRAW/Corel DESIGNER VBA 0 24-12-2004 12:30
getting default ruler setup chinkyk CorelDRAW/Corel DESIGNER VBA 2 29-10-2004 14:19
Application and Default Settings MrClark CorelDRAW CS 2 18-12-2003 09:35

All times are GMT -5. The time now is 23:46.

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