Scrollable Panel

  • Thread starter Thread starter Rick
  • Start date Start date
R

Rick

I need to create a custom scrollbar that when used, it scrolls a panel
full of images with checkboxes beside them. In a desktop application,
I'd do it with ownerdraw. I guess this is a 2 part question,

1. How would I create my 2 by X list of icon/checkboxes
2. How would I use my custom vertical scrollbar to scroll it?

Rick
 
I'd create a owner-drawn list and put each icon/check pair in a ListItem.
That would get the scrolling nearly free.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
An owner drawn list? I was going to do it with a panel and draw on
the panel, but I don't see an owner draw option for the panel like in
windows forms. Is there a caveat to doing this on the CF?

Rick
 
Yes, a List. It's already got the underpinnings for most of what you want.
A Panel is simply a Container. A good example of an owner-drawn List is the
List2 control in the OpenNETCF SDF. I've used it to create lists where each
item contained an icon plus text of different font sizes and faces. I did
that in an afternoon while at a conference for a demo.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
 
Back
Top