Luke Pascoe asked:

> Does anyone know how to tell whether a scrollbar is visible on a
> TStringGrid?

The technique that I have found to work is something like:

  HasVScrollBar := GetWindowLong(MyStringGrid.Handle, GWL_STYLE)
    and WS_VSCROLL <> 0;

Cheers, Max.

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to