FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Transparency

 
Post new topic   Reply to topic     Forum Index -> DFL
View previous topic :: View next topic  
Author Message
rhosking



Joined: 21 Aug 2006
Posts: 14
Location: UK

PostPosted: Wed Oct 04, 2006 9:20 am    Post subject: Transparency Reply with quote

I would like to paint the background of a panel myself and have all child controls (labels, listboxes etc) be transparent so the panels background is visible.

What is the best way of accomplishing this? I see there is an internal opaque setting that each component uses, but I don't really want to subclass all the controls to expose this... if that is even the right thing to do. Could Control have a public opaque property?
Back to top
View user's profile Send private message
Chris Miller



Joined: 27 Mar 2004
Posts: 514
Location: The Internet

PostPosted: Wed Oct 04, 2006 8:13 pm    Post subject: Re: Transparency Reply with quote

I don't think the OPAQUE control style is how to do it, that's generally if the paint event will fill in the whole control (and background-paint can be skipped).

For transparency you request, it's not currently supported in DFL, and I'll have to add it to my to-do list. The way it will be achieved is by setting the backColor to a transparent Color.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DFL All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group