How to modify HScrollBar

  • Thread starter Thread starter cronusf
  • Start date Start date
Hi,

I suspect that is basically just a user control with two buttons and a
label. This control would have to know the number of pages available
(Maximum) and the current page (Value). The two buttons would then simply
increase/decrease the value and render Value/Maximum in the label. The
control should also pass an event with the page number whenever the Value
changed. The parent control would then set the Maximum at an appropriate
time, and listen to the 'valuechanged' event.
 
I want to do a control like this:

http://img216.imageshack.us/img216/1629/ctrlib6.jpg

The HScrollBar class almost does this. However, instead of rendering
the scroll "knob", I'd like to draw text to show the position (e.g.,
in the image, it draws 13/16).

I suggest to write a custom control or user control for this purpose. The
scrollbar is not as easyly customizable and it seems that you only need a
subset of the scrollbar control's functionality.
 
Back
Top