...detect if the scrollbars of a TStringGrid are visible?

Author: Thomas Stutz

Category: VCL

if (GetWindowlong(Stringgrid1.Handle, GWL_STYLE) and WS_VSCROLL) <> 0 then
  
ShowMessage('Vertical scrollbar is visible!');

if (GetWindowlong(Stringgrid1.Handle, GWL_STYLE) and WS_HSCROLL) <> 0 then
  
ShowMessage('Horizontal scrollbar is visible!');

 

printed from
www.swissdelphicenter.ch
developers knowledge base