Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I scroll Up & Down, Right & Left in the Preview window using key strokes?

0
0 Posted

How can I scroll Up & Down, Right & Left in the Preview window using key strokes?

0
0

The following code will show you how to access the scrolling & paging functions of the FormGenWin component. procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); const {Setting Keystroke constants} pgup=33; pgdn=34; pgend=35; pghome=36; arleft=37; arright=39; arup=38; ardown=40; begin Case key Of pgup: FormGenWin1.PrevPage; pgdn: FormGenWin1.NextPage; arleft: FormGenWin1.ScrollLeftPage; arRight: FormGenWin1.ScrollRightPage; arup: FormGenWin1.ScrollUpPage; arDown: FormGenWin1.ScrollDownPage; pgEnd: FormGenWin1.ScrollToBottom; pgHome: FormGenWin1.ScrollToTop; end; end; We can only guess that your next question would be about setting the amount of scroll that takes place when using the navigation keys or hiding the scrollbars when using the navigation keys. The HorzScrollBar & VertScrollBar properties were added in the 3.4 version, these properties give you full access to the scrollbars. There is no way to modify these settings in previous versions.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123