Drawing an Ellipse on Each Row of ListView Control
-
15. dubna 2012 1:46Hello,
Is it possible to draw an ellipse on each row of under a specific column of a ListView control like the following picture?
The picture comes from an old Mac app that I've developed. I know how to change the back color of an cell. I've looked around. After spending an hour, I found no information in this respect.
Thank you,
Onion Ring
Onion is a recent refuge from Mac OS X and hates Mac App Store. System: Windows 7 x64
Všechny reakce
-
15. dubna 2012 2:16
http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.ownerdraw.aspx
http://www.codeproject.com/Articles/16009/A-Much-Easier-to-Use-ListView
http://social.msdn.microsoft.com/forums/en-US/winforms/thread/45572110-168b-48b3-afaa-b5ae0425f8bc/
Mark the best replies as answers. "Fooling computers since 1971."
http://thesharpercoder.blogspot.com/
- Upravený Rudedog2MVP 15. dubna 2012 3:07
- Označen jako odpověď Shanks ZenMicrosoft Contingent Staff, Moderator 30. dubna 2012 8:44
- Zrušeno označení jako odpověď Onion Ring 30. dubna 2012 9:09
-
15. dubna 2012 3:49Thanks for the links. I'd had two of them checked out before posting the question here. Anyway, some explanation will help me further as to why I need those links.
Onion is a recent refuge from Mac OS X and hates Mac App Store. System: Windows 7 x64
-
15. dubna 2012 16:07
Thanks for the links. I'd had two of them checked out before posting the question here. Anyway, some explanation will help me further as to why I need those links.
Onion is a recent refuge from Mac OS X and hates Mac App Store. System: Windows 7 x64
Explanation? You got it. You originally asked the following .....
"Is it possible to draw an ellipse on each row of under a specific column of a ListView control like the following picture?"
I posted links to an application that appears to do what you asked. I posted links to the most critical documentation in the MSDN Library that explains how the code works. Since you didn't ask a specific code related question, nor posted any code that is giving you trouble, I simply answered your question.
"Is it possible to ...."
Yes, it is possible to.... Please refer to these links to see one way that it could be achieved. You will need the links because they provide code examples similar to what is illustrated in your posted image. What happens next is entirely up to you.
Rudy =8^D
Mark the best replies as answers. "Fooling computers since 1971."
http://thesharpercoder.blogspot.com/
- Upravený Rudedog2MVP 15. dubna 2012 17:12