TrackBar Skinning

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings!

We are working on a project that has a bunch of TrackBars spec'ed as graphic
controls. In other words, they are slick looking and green.

In the design phase, these controls look great on the printed page, though
when I try to get the TrackBar to look the way the concept was presented, it
just doesn't seem to let me tweak it.

Can you please tell me what I can do to easily customize the TrackBar
control? Skinning the bar that moves up and down would be great.

Thank you in advance,
Michael Gurevich
 
Michael,

There isn't much you can do, I'm afraid without doing all of the
painting yourself. You can override the OnPaint method, and render the
trackbar yourself when needed (depending on the properties of the object).

If you are using .NET 2.0, you will be able to use the TrackBarRenderer
to help create some of the elements of the trackbar, but you will probably
have to do some color adjustments to the image it paints.

Hope this helps.
 
Hi Nicholas,

Thank you for sharing this with me. Would you happen to know where I can
find instructions on doing this? We are not yet using 2.0.

Cheers,
Michael Gurevich


Nicholas Paldino said:
Michael,

There isn't much you can do, I'm afraid without doing all of the
painting yourself. You can override the OnPaint method, and render the
trackbar yourself when needed (depending on the properties of the object).

If you are using .NET 2.0, you will be able to use the TrackBarRenderer
to help create some of the elements of the trackbar, but you will probably
have to do some color adjustments to the image it paints.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

AtlasApollo said:
Greetings!

We are working on a project that has a bunch of TrackBars spec'ed as
graphic
controls. In other words, they are slick looking and green.

In the design phase, these controls look great on the printed page, though
when I try to get the TrackBar to look the way the concept was presented,
it
just doesn't seem to let me tweak it.

Can you please tell me what I can do to easily customize the TrackBar
control? Skinning the bar that moves up and down would be great.

Thank you in advance,
Michael Gurevich
 
Back
Top