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.
 

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