Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Ultimate Pack - special offer!

Ultimate Pack  hot!
Image Editor  new!
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET

...get more...
for Delphi.NET, C#, VB.NET
for Delphi VCL, BCB 3-6

WinAPI Online
Unix Manual Pages
MegaDetailed.NET
in3steps.com
cdtrrracks.com new!

Blogspot  greatis.blogspot.com

Scroll form by PgDn and PgUp - Components - Tips & Tricks - Greatis Delphi Pages

You should set KeyPreview property of the Form to True and use VertScrollBar property of your form to change position of the form.


procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if Key=VK_NEXT then
    VertScrollBar.Position:=
      VertScrollBar.Position+
      StrToInt(Edit1.Text)
  else
    VertScrollBar.Position:=
      VertScrollBar.Position-
      StrToInt(Edit1.Text);
end;
For more
Delphi Help

Download source