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 02-11-2011, 09:34
timespace
Guest
 
Posts: n/a
Default Icon set by SetCustomIcon display black background?

I'm learning to write CorelDraw dll plugins.

It's weired after i used SetCustomIcon("..\some.ico") to set the command button's icon, the icon displayed black background...

Why? Help!

I've checked the ico file in many icon tools...
Attached Images
 
Reply With Quote
  #2  
Old 05-11-2011, 06:52
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
I haven't used this function before but can it accept a .bmp file also?
~John
Reply With Quote
  #3  
Old 05-11-2011, 23:19
timespace
Guest
 
Posts: n/a
Default

thx for your reply.

Yes, it can accept a .bmp file, but i don't know how to set the transparent color in bmp?

BMP does not support transparent background itself.
So, does CorelDraw use a specific color as transparent?
Reply With Quote
  #4  
Old 07-11-2011, 07:11
ddonnahoe's Avatar
ddonnahoe ddonnahoe is offline
Senior Member
 
Join Date: Jan 2004
Location: Louisville, KY
Posts: 552
Send a message via ICQ to ddonnahoe Send a message via AIM to ddonnahoe Send a message via MSN to ddonnahoe Send a message via Yahoo to ddonnahoe
Default

I'm also, not familiar with this bit of code, but if it accepts a BMP, can it also accept a PNG?
__________________
Sean
Waiting for a ride in the T.A.R.D.I.S.
Reply With Quote
  #5  
Old 07-11-2011, 07:30
timespace
Guest
 
Posts: n/a
Default

I've tried it.

CorelDraw will not show the PNG file on a toolbar as one Icon.

Instead, it shows a coffee icon...
Reply With Quote
  #6  
Old 07-11-2011, 17:15
jemmyell jemmyell is offline
Senior Member
 
Join Date: Jan 2005
Location: Orange County, California, USA, Earth, Solar System, Milky Way Galaxy
Posts: 157
Default

Hi,

It won't honor transparency. Just make the background the same as the color of the CorelDRAW toolbar. That is what I do.

-James
__________________
-James Leonard
CNC Inlay Guy - www.CorelDRAWCadCam.com
Reply With Quote
  #7  
Old 07-11-2011, 18:29
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Quote:
Originally Posted by jemmyell View Post
Hi,

It won't honor transparency. Just make the background the same as the color of the CorelDRAW toolbar. That is what I do.

-James
This is what I was thinking when I suggested a bmp file because I use bmp's for my CorelDraw macro icons.
~John
Reply With Quote
  #8  
Old 08-11-2011, 08:45
timespace
Guest
 
Posts: n/a
Default

That sounds a good idea except for CorelDraw may show different toolbar background colors under different Windows versions...
Reply With Quote
  #9  
Old 08-11-2011, 14:53
jemmyell jemmyell is offline
Senior Member
 
Join Date: Jan 2005
Location: Orange County, California, USA, Earth, Solar System, Milky Way Galaxy
Posts: 157
Default

Hi,

Unless one of the Corel guys wants to tell us how to get an icon with a transparent background to work then that is the only option I am aware of.

I did NOT spend a great deal of time struggling with this though. Too much else on my plate...

-James
__________________
-James Leonard
CNC Inlay Guy - www.CorelDRAWCadCam.com
Reply With Quote
  #10  
Old 08-11-2011, 17:20
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Quote:
Originally Posted by timespace View Post
That sounds a good idea except for CorelDraw may show different toolbar background colors under different Windows versions...
Hi.
There might be some work around ideas. Like buttons on top of a frame, the size the of the form, and set the frame to a color you choose.
~John
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
Convert Black RGB to Black CMYK (k100) kunghel CorelDRAW/Corel DESIGNER VBA 7 13-07-2010 12:32
Status Bar display is reduced.[how to display full?] hotdog10 General 2 14-04-2009 20:22
weird colors after .SetCustomIcon Tomasz CorelDRAW/Corel DESIGNER VBA 5 20-08-2007 15:39
Background to object Fine! But Object to Background - How? marian General 2 15-07-2005 03:51
How do you display and retrieve from... Steve CorelDRAW/Corel DESIGNER VBA 2 06-05-2003 14:33


All times are GMT -5. The time now is 11:56.


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