I want to display something in the bottom right of a TDBGrid, but I don't want to overwrite the scrollbars.
Is there a nice way of determining if the scrollbars are visible? (and their size)
I want to display something in the bottom right of a TDBGrid, but I don't want to overwrite the scrollbars.
Is there a nice way of determining if the scrollbars are visible? (and their size)
Copyright © 2021 Jogjafile Inc.
Probably the best approach is to use the
ClientRectproperty, which gives the client rectangle of the control in its own coordinates (which implies thatLeftandTopare always0). The "client rectangle" is the part of the control which is not border and scroll bar.For comparison, the
BoundsRectproperty is the full rectangle of the window in the parent window's coordinate system.For example,
and
results in