kasdoffe Posted June 22, 2005 Posted June 22, 2005 I have made a program to keep track of my 'To Do' list here at work. These things 'to do' are listed in a listview with columns such as name, due date, due time, etc. Some of these things 'To Do' have certain requirements associated with them before I can say I have completed them. I'd like to display a progress bar for each task showing the progress of the task based on how many of the requirements are done. So, I had this cool idea. Instead of using some extended list view to display a column entirely made up of progressbars, I thought it would be neat to have a progressbar with 50% opacity spanning the entire row across all columns. The task data in each column would still show but behind it is this progressbar. Is is possible to apply opacity on a single control? If so, how? If not, any other ideas to get what I want to happen? Quote
jmcilhinney Posted June 23, 2005 Posted June 23, 2005 Lookup the ControlStyles Enumeration in the help. Particularly the SupportsTransparentBackColor value. I've never actually used this myself, mind you. Quote
kasdoffe Posted June 23, 2005 Author Posted June 23, 2005 Lookup the ControlStyles Enumeration in the help. Particularly the SupportsTransparentBackColor value. I've never actually used this myself' date=' mind you.[/quote'] that's not what I'm looking for. When you apply opacity to a form, the entire form (backcolors, forecolors, controls, etc) fade in and out. If I add support for transparent backcolor to a control, such as a listview or progressbar, only the backcolor is transparent. The actual control doesn't act like opacity on a form. Quote
kasdoffe Posted June 23, 2005 Author Posted June 23, 2005 that's not what I'm looking for. When you apply opacity to a form' date=' the entire form (backcolors, forecolors, controls, etc) fade in and out. If I add support for transparent backcolor to a control, such as a listview or progressbar, only the backcolor is transparent. The actual control doesn't act like opacity on a form.[/quote'] Here's a screenshot of what I'm looking for. This isn't an implemented solution, it's a hack so you can see what I want to happen. Quote
Diesel Posted June 23, 2005 Posted June 23, 2005 Why do you need a seperate progress control? Using gdi, just draw the progress bar on the listview itself. Quote
kasdoffe Posted June 23, 2005 Author Posted June 23, 2005 Why do you need a seperate progress control? Using gdi' date=' just draw the progress bar on the listview itself.[/quote'] got an example handy?.. I'll be searching too.. Quote
AlexCode Posted June 26, 2005 Posted June 26, 2005 Is this what you're looking for? http://www.codeproject.com/cs/miscctrl/cprogressdatagrid.asp Exactly what you did on that "hacked" print screen of yours it would take a lot of time... I think it could be possible but a bit hard... Alex :p Quote Software bugs are impossible to detect by anybody except the end user.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.