Gary Olson wrote:
I have a extra high string grid inside a form. the form size is
about 800x1000 but it barely fits in the height department. I see a
horizontal scrollbar on the string grid when I run the program but I
would like to shrink the form both vertically and horizontally so
that I can use both a vertical and horizontal scrollbar,
Is this possible to get a a vertical scrollbar.
So, you want scrollbars on the Form itself, and not just on the
StringGrid? It is generally not good to make a Form have scrollbars,
the controls inside the Form should have their own scrollbars as
needed. A properly aligned StringGrid with scrollbars enabled should
be sufficient to provide access to the StringGrid content without
requiring the Form itself to be scrollable as well. The dimensions of
the StringGrid should not exceed the dimensions of the Form.
I also tried to use the scrollbox on the form but am not seeing those
scrollbars either.
on ScrollBox I checked AutoScroll true
Inside VertscrollBar Properties
Nothing i tried seems to have a efect on the form scrollbars.
Of course using a ScrollBox would not affect the Form's scrolling,
since the ScrollBox has its own scroll area and scrollbars.
I do have a horizontal Scrollbar directly on the string grid.
So why do you need one on the Form, too?
--
Remy Lebeau (TeamB)
Connect with Us