Solved

add the arrows as a scroll

Posted on 2004-04-05
1
319 Views
Last Modified: 2010-04-05
how to add 2 arrows to scroll the content of the panel

0
Comment
Question by:zgeorge_2
1 Comment
 
LVL 11

Accepted Solution

by:
shaneholmes earned 110 total points
ID: 10762432
Hi george, I added these for you.

I created two new buttons (+ two new actions) and added the following functionality:

procedure TfrmMain.actUpExecute(Sender: TObject);
begin
 lvwReceipt.ItemIndex:= lvwReceipt.ItemIndex - 1;
 lvwReceipt.Items[lvwReceipt.ItemIndex].Selected:= True;
 lvwReceipt.Items[lvwReceipt.ItemIndex].Focused:= True;
end;

procedure TfrmMain.actDownExecute(Sender: TObject);
begin
 lvwReceipt.ItemIndex:= lvwReceipt.ItemIndex + 1;
 lvwReceipt.Items[lvwReceipt.ItemIndex].Selected:= True;
 lvwReceipt.Items[lvwReceipt.ItemIndex].Focused:= True;
end;

Shane
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now