![]() |
[Closed] Paste Button Image |
Post Reply ![]() |
Author | ||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() 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
|
||
![]() |
||
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
|
HI, Background must be filled with GetSysColor(COLOR_3DFACE) color to use it as transparent.
|
||
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
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
|
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
Hah - such nicely written code, all I have to do is change: void CXTPCustomizeSheet::OnCustomizePasteImage() ! Many thanks. |
||
Simon HB9DRV
|
||
![]() |
||
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
|
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 |
||
![]() |
||
Simon HB9DRV ![]() Senior Member ![]() ![]() Joined: 07 July 2005 Location: Switzerland Status: Offline Points: 458 |
![]() ![]() ![]() ![]() ![]() |
|
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
|
||
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |