vertical scrollbar [modified]
-
hi friends I have a query regarding vertical scroll bar. how to use vertical scroll bar(vscroll) with a label. that is when the contents in the label increases, a scroll bar should appear. I dont want a default scroll bar like in the rich text box control .... I want to work with the vscroll control. thanks in advance -- modified at 1:33 Friday 30th March, 2007
-
hi friends I have a query regarding vertical scroll bar. how to use vertical scroll bar(vscroll) with a label. that is when the contents in the label increases, a scroll bar should appear. I dont want a default scroll bar like in the rich text box control .... I want to work with the vscroll control. thanks in advance -- modified at 1:33 Friday 30th March, 2007
You need to write a control to do this. You would just use the MEasureString method on the graphics class to work out if your text is going to be oversize, show a scrollbar accordingly, and redraw the string offset by the scrollbar position when a scroll event occurs.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )