DelphiFAQ Home Search:
General :: Programming :: Delphi :: VCL
About the Delphi VCL (Visual Component Library)

Articles:

This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Scroll your form with PgUp and PgDn

Form scrolling is accomplished by modifying the VertScrollbar or HorzScrollbar position properties of the form.
The following code demonstrates how to do this:

procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
   Shift: TShiftState);
 const
   PageDelta = 10;
 begin
   with VertScrollbar do
   if Key = VK_NEXT then
     Position := Position + PageDelta
   else if Key = VK_PRIOR then
     Position := Position - PageDelta;
 end;
You don't like the formatting? Check out SourceCoder then!
Generated 12:01:45 on Jun 17, 2019