Custom Splitter

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

Rick

I need to create a custom splitter control. It'll function the same,
except that it will be thicker, and have an image in the middle. When
the splitter is active, it'll change color. Can anyone give some
direction?
 
That's pretty standard stuff. I guess I'm looking more to modify the
look of the splitter by adding an image to middle of it, than I am
adding functionality. For example, I know I can just override
OnMouseDown, OnMouseMove, and OnMouseUp, then set the background color
property of the splitter when it's in use. I don't have a clue how to
add the image. You can see what I want the final product to look like
at http://www.agiletechnicalsolutions.com/splitter.png
 
That's pretty standard stuff. I guess I'm looking more to modify the
look of the splitter by adding an image to middle of it, than I am
adding functionality. For example, I know I can just override
OnMouseDown, OnMouseMove, and OnMouseUp, then set the background color
property of the splitter when it's in use. I don't have a clue how to
add the image. You can see what I want the final product to look like
athttp://www.agiletechnicalsolutions.com/splitter.png

Going off the top of my head... you'd probably want to override
OnPaint, or something similar, and use the Graphics object to draw the
appropriate picture based on the current state (either drawing a
premade bitmap, or manually drawing the image yourself with graphics
primitives).

Mark Erikson
http://www.isquaredsoftware.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top