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 13-03-2010, 12:32
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default Why do all of my palettes contain dups according to this?

Hi.
Why do all of my palettes contain duplicate colors according to this?

-John

Code:
Sub paletteDups()
Dim pal As Palette

    For Each pal In Palettes
     If pal.DuplicatePresent Then
      MsgBox pal.Name & " contains duplicate colors" & ", Color count: " & pal.ColorCount
     End If
    Next pal
End Sub
Reply With Quote
  #2  
Old 19-03-2010, 10:01
biok
Guest
 
Posts: n/a
Default

I guess this is a bug in corel. I tested your paletteDups() and even if I create a custom pallete with two different colors, it displays DuplicatePresent = true, ColorCount=2. Only when you create a pallete with just one color DuplicatePresent = false ... So I insist it looks like a bug.
Reply With Quote
  #3  
Old 19-03-2010, 10:49
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 Duplicates

I came up with the same results. I will report it as a bug.

-Shelby
Reply With Quote
  #4  
Old 24-03-2010, 19:09
SteveDude SteveDude is offline
Senior Member
 
Join Date: Dec 2005
Location: Salina, Kansas USA
Posts: 149
Default ...

The monkey rig for that is to delete every color in the palette, then select all obejcts and create the pallette from the current selection. No dupes and all the right colors.
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
Custom Palettes? masterchiefph CorelDRAW/Corel DESIGNER VBA 2 23-07-2007 19:41
Color Palettes? masterchiefph CorelDRAW/Corel DESIGNER VBA 0 12-07-2007 21:18
Custom Palettes via VBA ddonnahoe CorelDRAW/Corel DESIGNER VBA 7 13-11-2006 07:53
palettes.createfromdocument CORNMEN CorelDRAW/Corel DESIGNER VBA 3 19-01-2005 08:54
Temporary palettes CORNMEN CorelDRAW/Corel DESIGNER VBA 2 10-07-2003 20:27


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


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