Still no solution :(
-
Friends, I've been searching for a solution to a problem for 2 days on Google and forums but couldn't succeed. The problem is how do I get the ListView selection highlight style as it is in VS .NET menus. There is an article "TreeListView" here http://www.codeproject.com/cs/miscctrl/treelistview.asp[^] that has this feature but it's a little complicated for me to distinguish this feature from rest of the code. This is my 3rd post on the same subject and will be the last - so please forgive me. Thanks. Radgar "Imagination is more important than knowledge." - Albert Einstein
-
Friends, I've been searching for a solution to a problem for 2 days on Google and forums but couldn't succeed. The problem is how do I get the ListView selection highlight style as it is in VS .NET menus. There is an article "TreeListView" here http://www.codeproject.com/cs/miscctrl/treelistview.asp[^] that has this feature but it's a little complicated for me to distinguish this feature from rest of the code. This is my 3rd post on the same subject and will be the last - so please forgive me. Thanks. Radgar "Imagination is more important than knowledge." - Albert Einstein
There is no such property. The control uses the system's Display Properties/Appearance colors to draw the highlights. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
There is no such property. The control uses the system's Display Properties/Appearance colors to draw the highlights. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
Dave, thanks for your time but I never said the control has the property. If it had, I'd never have asked this question, would I? The control can be inherited and/or custom-drawn via some Windows APIs or so.. I know it's possible and I gave a link of an example actually. But that example has too crowded code which is hard for me to pick the parts I need. Don't get me wrong but please read the post fully next time before answering because now my post seems like answered to other users who possibly has the correct solution I need. Radgar "Imagination is more important than knowledge." - Albert Einstein
-
Dave, thanks for your time but I never said the control has the property. If it had, I'd never have asked this question, would I? The control can be inherited and/or custom-drawn via some Windows APIs or so.. I know it's possible and I gave a link of an example actually. But that example has too crowded code which is hard for me to pick the parts I need. Don't get me wrong but please read the post fully next time before answering because now my post seems like answered to other users who possibly has the correct solution I need. Radgar "Imagination is more important than knowledge." - Albert Einstein
Radgar wrote: Don't get me wrong but please read the post fully next time before answering because now my post seems like answered to other users who possibly has the correct solution I need. I did. The solution IS to ownerdraw the entire control and use the colors you want, not the system. If the example that you found is too much to wrap your brain around all at once, pick it apart. Try certain things and see what they do. Because nearly all of what you saw in the example is what your going to have to go through to get the functionality you want. The question you show now be asking yourself is "Is this worth it?" RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome