Re: Win32Lib: Disable Focusability
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 04, 2004
- 479 views
cklester wrote: > > How would I make a ListView unfocusable? That is, I want the list > to display normally, but I want to prevent any selection. If I > "disable" the list, it displays with a gray background and light > characters and it cannot be scrolled. I know there must be a way > to make it display normally, but just not be able to have selections > made, yet still scroll it. :) What's the problem with making selections? You don't have to *do* anything when a selection is made. Anyhow, there is no real easy way to do this. You might have to catch selection events then deselect the item manually. Alternatively, you could use an owner-drawn listview, but that is **LOTS** of work. Have you tried make a listview without a scroll bar, and do your own scrollbar next to it. That way you could disable the listview, change the background back to its normal color, and still manage the scrolling. This would still be a lot of work. So I don't really know if its worth the effort. -- Derek Parnell Melbourne, Australia