Problems setting Width, Height for TCustomGrid if ScrollBars is auto
Original Reporter info from Mantis: cobines
-
Reporter name:
Original Reporter info from Mantis: cobines
- Reporter name:
Description:
This is a regression after rev. 36804, bug #21724 (closed). But I tried with some other controls TPanel, TScrollBox, TGroupBox, TMemo, TTreeView but they worked fine with/without scrollbars, so maybe it's a bug in the Grids.
The test it to run attached project and change size of the StringGrid by pressing buttons. The following are some combinations pressed after start:
a) 200 changes only Width
b) 500 doesn't change anything
c) 10 OK, 50 OK, 200 changes only Width
d) 10 OK, 50 OK, 500 nothing
e) 10 OK, 200 only Width, 500 only Width
Sometimes changing size with +, - buttons work when changing size with numbered buttons doesn't. For example:
f) start, press 200 few times, the size is 200x100 and not changing, press +, the size is 210x110
g) start, press 10, and then 500 a few times, the size is 500x10 and not changing, press +, the size is 510x20
When ScrollBars are set to ssBoth or ssNone the bug doesn't exist. When it is ssAutoHorizontal or ssAutoVertical the problems are only in one dimension (either Height or Width).
Mantis conversion info:
- Mantis ID: 21790
- OS: Windows XP
- OS Build: SP3
- Build: 36883
- Platform: Win32
- Version: 1.1 (SVN)
- Fixed in revision: 36993 (#375e4c74)