OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 19-05-2010, 09:32
Posts: n/a
Default Palettes issues in X5

Does somebody noticed that the palettes in VBA does not work fine in X5?? Almost everytime I tryed to create a palette using the same scripts that I'm using in X4, I have an Error.
Reply With Quote
Old 19-05-2010, 10:37
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 Example

Please provide an example and the error message.

Reply With Quote
Old 19-05-2010, 12:08
Posts: n/a

This code below for example, when I run the first time, it works. But if I close the CorelDraw and open it again. Run the paletteTest() again I have this error:
Cannot Find palette C:\Users\MyUserName\Documents\My Palettes\Red Tints.xml

Sub paletteTest()
Dim pal As New palette
Dim tint As Long
Dim c As New Color
Set pal = Application.Palettes.Create("Red Tints", , True)

c.RGBAssign 255, 0, 0
c.ConvertToFixed (cdrPANTONECoated)

For tint = 0 To 100 Step 10
    c.tint = tint
    pal.AddColor c
Next tint

End Sub
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
box and corner radius issues dimmech CorelDRAW/Corel DESIGNER VBA 8 17-09-2012 07:59
Resample issues biok CorelDRAW/Corel DESIGNER VBA 4 02-02-2010 10:50
Custom Palettes? masterchiefph CorelDRAW/Corel DESIGNER VBA 2 23-07-2007 19:41
Plot File Issues Planner1 General 1 28-01-2007 08:30
Active document issues.. wbochar CorelDRAW/Corel DESIGNER VBA 2 19-03-2003 15:15

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

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