Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling Tables

Status
Not open for further replies.

woodyinoz

IS-IT--Management
Jan 8, 2002
215
GB
Hi all,

I've posted this question before but had no replies.... fingers crossed this time!

I've got two tables upon a form, both are the same size and both have scroll bar running horizontally along them.
When I move one of the scroll bars I also want the scroll bar upon the other table to move aswell, so that each table is being scrolled through simultaneously.

Can anyone help?!

Thanks in advance,

Woody.
 
Woody,

Sorry no one answered your original post. I don't know of any way to monitor or control the scroll bars in Paradox. You may want to consider turning the scroll bars off and create control buttons that would move each table a field to the right or left when pushed.

Perrin
 
Woody,

If you're trying to keep two table frames sychronized, you need to use ObjectPAL. It's not a trivial process, but this seems to work well on my test form; it's taken from the record object of a tableframe bound to the sample Customer table; the other tableframe is bound to the sample Orders table:

Code:
method action(var eventInfo ActionEvent)

   if eventInfo.actionClass() = MoveAction then
      doDefault
      self.postAction( userAction )
   else
      if eventInfo.id() = userAction then
         if Ords.Customer_No.Value <>
            Cust.Customer_No.Value then

            Ords.Locate( &quot;Customer No&quot;, 
                         Customer_No.Value )
         endIf
      endIf
   endIf

endMethod

Now, this is a very simple approach, but it demonstrates the basics. Also, you may find it works better if you add code to each tableframe that highlights the current records. (For an example of that, please see
Other approaches are possible, though I've always found something like this to be useful for this type of this.

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top