Panel and ScrollBars

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

Guest

Hello List,

I am relatively new to GDI+ and have been experimenting
with it. But I have found something that I really have no
idea how to solve.

I have a panel which displays scrollbars automatically, but
since I draw some of my UI controls by "hand", they have a
very unique look and feel; I use a couple of panels here
and there (bacause I need scroll bars to appear
automatically when needed under certain circumstances). The
problem is that the windows scroll bars are "ugly" (no
offense MS! ;-) and have nothing in common with my controls.

Could somebody point me to the right direction on how to
override that, "paint" my own scrollbars, etc.?

Also, advice on how to "fire" the scroll down/up event will
be helpful, because if I could, at least, hide scrollbars
and add a couple of buttons that mimic the click effect...
i wouldn't mind.

Thanks in advance,

Martín.
 
Hi Matt,
The ScrollBars in ScrollableControl (a superclass of Panel) are not painted
by managed code.
Oh... :(
This article looks similar to what you're trying to achieve, although I
don't know how well it works (and the code seems messy).
Thanks for the link, I'll take a look at it.

By the way, do you know if there's a managed way to force a scroll (up or
down) ?

Thanks again.

Yours,

Martín.
 
Back
Top