Contents
- Index
- Previous
- Next
OnShowScrollBars event
Applies to
TProfGrid component
Declaration
property OnShowScrollBars: TProfGridShowScrollBarsEvent;
Description
Occurs before the scroll bars appear or disappear.
The HScrollBar and VScrollBar parameters indicate what the grid has planned to do with horizontal and vertical scroll bars. The event can be used for getting notified when the grid shows a scroll bar or hides it. The parameters can be changed in the event handler to force a scroll bar to be on or off.
Example
The following event handler makes the vertical scrollbar permanent.
procedure TForm1.ProfGrid1ShowScrollBars(Sender: TProfGrid; var HScrollBar,
VScrollBar: Boolean);
begin
VScrollBar := True;
end;