Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Change DBGrids scrollbar width in Delphi 1

142 views
Skip to first unread message

Giles Nutkins

unread,
Jan 7, 1998, 3:00:00 AM1/7/98
to

How can I change the scrollbar width in a Delphi 1 grid running on Windows
3.11. It is easily done in 32 bit via a control panel setting.

Thanks
Giles

Peter Below

unread,
Jan 7, 1998, 3:00:00 AM1/7/98
to

In article <6904ql$55...@forums.borland.com>, Giles Nutkins wrote:
> How can I change the scrollbar width in a Delphi 1 grid running on Windows
> 3.11. It is easily done in 32 bit via a control panel setting.
>
You cannot, on Win 3.1 the scrollbar width is a fixed system value
determined by the size of the arrow bitmaps.

Peter Below (TeamB) 10011...@compuserve.com)


Giles Nutkins

unread,
Jan 8, 1998, 3:00:00 AM1/8/98
to

So there is no way you can modify this constant found by using the API call
GetSystemMetrics(SM_CYHSCROLL).
You are allowed to change the height of a TScrollbar control, but why not a
TDBGrid which I assume is descended from TScrollbar some way.

Thanks
Giles

Peter Below <10011...@compuserve.com> wrote in message ...

Peter Below

unread,
Jan 8, 1998, 3:00:00 AM1/8/98
to

In article <692eba$5t...@forums.borland.com>, Giles Nutkins wrote:
> You are allowed to change the height of a TScrollbar control, but why not a
> TDBGrid which I assume is descended from TScrollbar some way.
>
You assume wrong. The scrollbars on the borders of windows and controls are
part of the non-client area of the window and have little in common
internally with scrollbar controls.

Peter Below (TeamB) 10011...@compuserve.com)


0 new messages