Print Page | Close Window

[Closed] Paste Button Image

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4158
Printed Date: 28 September 2024 at 6:42pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [Closed] Paste Button Image
Posted By: Simon HB9DRV
Subject: [Closed] Paste Button Image
Date Posted: 07 May 2006 at 12:35pm
If I paste an image with a white background - say a smiley - the white background doesn't get painted with the current paint theme - it stays white.

What are the rules for pasting an image so that the background gets filled in the with current theme?

(I hope this makes sense)


-------------
Simon HB9DRV



Replies:
Posted By: Oleg
Date Posted: 07 May 2006 at 6:27pm

HI,

Background must be filled with GetSysColor(COLOR_3DFACE) color to use it as transparent.

 



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Simon HB9DRV
Date Posted: 08 May 2006 at 3:38am
Originally posted by oleg oleg wrote:

HI,

Background must be filled with GetSysColor(COLOR_3DFACE) color to use it as transparent.


Thanks,

Maybe for a future update you could optionally use a predefined colour such as RGB(255,0,255) or similar or take the top-left pixel?

Asking my users to fill in the background is a lost cause :-)

Maybe I could intercept the paste operation and do this myself but I would rather you did this for me .


-------------
Simon HB9DRV


Posted By: Simon HB9DRV
Date Posted: 08 May 2006 at 3:50am
Originally posted by Simon HB9DRV Simon HB9DRV wrote:

Originally posted by oleg oleg wrote:

HI,

Background must be filled with GetSysColor(COLOR_3DFACE) color to use it as transparent.


Thanks,

Maybe for a future update you could optionally use a predefined colour such as RGB(255,0,255) or similar or take the top-left pixel?

Asking my users to fill in the background is a lost cause :-)

Maybe I could intercept the paste operation and do this myself but I would rather you did this for me .

Hah - such nicely written code, all I have to do is change: void CXTPCustomizeSheet::OnCustomizePasteImage() !

Many thanks.


-------------
Simon HB9DRV


Posted By: Oleg
Date Posted: 08 May 2006 at 8:38am

Hello,

COLOR_3DFACE was choosed to allow copy icons in Office 2003/Visual Studio products and paste them in CommandBars....

So better think twice about this change....



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Simon HB9DRV
Date Posted: 09 May 2006 at 3:22am
Originally posted by oleg oleg wrote:

Hello,

COLOR_3DFACE was choosed to allow copy icons in Office 2003/Visual Studio products and paste them in CommandBars....

So better think twice about this change....


Hi - not really a problem - I am showing this COLOR3DFACE to my users in an extra Help page I've added to the Customize sheet so they know what to do.

For the terminally bewildered it would be nice to have an option to automatically determine the color from the top left pixel.


-------------
Simon HB9DRV



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net