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 15-08-2007, 12:36
Tomasz Tomasz is offline
Junior Member
 
Join Date: Aug 2006
Posts: 21
Default weird colors after .SetCustomIcon

Hi all,

I have noticed odd behavior of the .SetCustomIcon command. While importing icons onto a toolbar with use of VBA the colors of the icons differ from those expected. All of them are lighter and more vivid that intended. It happens regardless the format of the icon file (.ico, .bmp, .gif). On the other hand manual import of the icon file via Customization menu works perfectly. I wonder if this is the matter of palette used, or a matter of some kind of color correction. In order to ensure proper result I grabbed existing button image with Corel Capture, pasted to IconCool Editor, applied some changes and saved. Seemingly no color correction mechanizm seemed to be involved into the process.

Do you have any idea why it happens? And do you know the best way to prepare properly looking icons for my macros?

Best wishes,

Tomasz
Reply With Quote
  #2  
Old 15-08-2007, 12:52
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 Colors

This is because the icons can only have a limited color palette. Drives me NUTS that I can't have any color that I wish. (If you edit an icon in DRAW you will see the color palette.)

So what you are seeing is as designed, lets hope in futures version this will be corrected.

-Shelby
Reply With Quote
  #3  
Old 16-08-2007, 12:23
Tomasz Tomasz is offline
Junior Member
 
Join Date: Aug 2006
Posts: 21
Default

Thanks Shelby,

unfortunately I couldn't obtain better results in CorelPP either. I captured the button images with CorelTrace, pasted into CorelPP and extracted palette. Icons created in CorelPP with use of that palette still looks ugly. I think this is a problem with the order of the colors in the palette. Is it possible to find original Corel GUI palette somewhere?

Tomasz
Reply With Quote
  #4  
Old 16-08-2007, 12:29
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 Palette

I have no idea were the palette is hiding, but I can tell you how to see it. In CorelDRAW right click on any icon on a tool bar. Customize| Toolbar Item| Properties| Click the Appearance Tab. Click on the Pen Color. There is your palette and like I have said, not a lot to choose from.

-Shelby
Reply With Quote
  #5  
Old 16-08-2007, 15:19
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

here's the palette
and 71rip is a part of ripped bitmap icon resource from DrawIntl.dll (use any resource editing software to get that, for example FAR's resource browser plugin)
Attached Images
  

Last edited by wOxxOm; 16-08-2007 at 15:25.
Reply With Quote
  #6  
Old 20-08-2007, 15:39
Tomasz Tomasz is offline
Junior Member
 
Join Date: Aug 2006
Posts: 21
Default

Shelbym, wOxxOm,

thank you for your help. I created two palettes - one with use of colors shown in customization window, and second with use of colors given by wOxxOm. I carefully preserved order of the colors. I tried to convert picture to 256color using the palettes as well as tried to export RGB using these palettes. Unfortunately the result was the same - weird colors. I will continue to try to find the solution.

Best regards,

Tomasz
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
Getting a list of all colors in a Document CORNMEN CorelDRAW/Corel DESIGNER VBA 5 15-11-2008 05:14
256 colors Nico General 0 26-04-2007 02:10
Minimizing the number of colors used in a document Alex FAQ 1 24-05-2005 10:46
Palette (or Colors array) property in VBA class in CDR12 zlatev CorelDRAW/Corel DESIGNER VBA 7 22-02-2005 11:28
Wish to Convert Named Colors to Shape Color D_Green CorelDRAW/Corel DESIGNER VBA 1 12-09-2004 11:08


All times are GMT -5. The time now is 13:39.


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