Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Set or paint with transparent color?
Re: Set or paint with transparent color? [message #7872 is a reply to message #7861] Sun, 28 January 2007 06:34 Go to previous messageGo to previous message
snap2000 is currently offline  snap2000
Messages: 14
Registered: January 2007
Promising Member
luzr wrote on Fri, 26 January 2007 23:04

snap2000 wrote on Sat, 27 January 2007 00:18

Is there any way that I can paint with or set a transparent color on my own Ctrl? For example, if I were to draw a playing card as a ctrl, and I wanted to round the borders slightly, it would be easier to "erase" the corners than to go out of my way to not try to paint the corners in the first place.


Not sure I quite understand, but I guess the straight reply is no.

The problem is that it is not known what is the correct background. If things are transparent, the only correct solution to get the right appearance is to paint things in z-order...

MIrek


That's fair enough.

So is there no way to be able to paint a mask on a Ctrl, for example?


EDIT: Maybe I should try another approach to my question... So, ini my playing card, by painting a transparent color, I mean is there any way that I can set the color to "don't paint me", so that instead of being erased, it becomes transparent. Another way would be coloring it pink, for example, and setting pink as the transparent color that isn't drawn (this also applies to an upcoming concern, making a color transparent in an image, such as pink)?

Does that seem any more possible?

[Updated on: Sun, 28 January 2007 06:37]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Grabbing mouse events
Next Topic: Native common dialogs
Goto Forum:
  


Current Time: Sun Aug 24 08:09:33 CEST 2025

Total time taken to generate the page: 0.04953 seconds