truthseeker
truthseeker

Reputation: 1266

TStringGrid doesn't draw scrollbars

I have a form with TStringGrid component on it. Property Scrollbars of TStringGrid is set to ssBoth. If i make the window smaller, scrollbars doesnt appear. Instead of this client area of TStringGrid is cropped. I would prefer if scrollbars were disabled if application window has enough size and automatically enabled if I shrink window size under critical value. Do you have any idea what I am doing wrong?

Upvotes: 0

Views: 399

Answers (1)

David Dean
David Dean

Reputation: 2642

thruthseeker got it. If you haven't either anchored the grid, or otherwise auto-scale it to the size of the window, then it won't change size with the window, and thus won't have its own scroll bars.

Upvotes: 1

Related Questions