同步滚动 [英] Synchronous Scroll

查看:73
本文介绍了同步滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!


我在表单中有3个列表框,基于同一个表格。

我只想使用其中一个滚动(使用滚动条或鼠标滚轮)其他两个必须滚动(自动)同步。我希望在所有列表框中同时显示相同的记录区域。


任何想法?


谢谢!

Hello !

In a form I have 3 list boxes, based on the same table.
I like to use only one of them to scroll (using the scroll bar or the mouse wheel) and the others two must scroll (automatic) synchronous. I wish to show the same area of records, in all list boxes, at the same time.

Any ideas ?

Thank you !

推荐答案

  1. 为什么你会有3个基于同一张表的列表框?
  2. 每个列表框是否具有完全相同的记录数?
  3. 每个列表框的名称,行源等是什么?


感谢您的回复,ADezii。


1)我的数据库中有很多信息。很多表和大量的计算查询。我使用make-table查询将所有这些信息放在一起。然后我定义了3个列表框来显示按我需要排序的信息。我使用列号和可见性来显示,在每个列表框中显示我想要的内容。


2)是。


3)当然,名字是我的语言。现在让我们说名字是lst1,lst2和lst3。行源对于所有列表框都是相同的:MyTable。


................


我希望只滚动lst1,而自动,lst2和lst3必须滚动同步(如果可能的话)。我搜索滚动事件(如在VB中),但我找不到它。也许你(全部)有一个解决方案。


再次感谢你。
Thank you for reply, ADezii.

1) I have a lot of information on my database. A lot of tables and a lot of queries with calculations. I use a make-table query to put all this information together. Then I define that 3 list boxes to show this information sorted as I need. I play with the column numbers and visibilities to show, in each list box what I wish.

2) Yes.

3) The names are in my language, of course. For now lets say that the names are lst1, lst2 and lst3. The row source is the same for all list boxes: MyTable.

................

I wish to scroll only lst1 and, automatic, lst2 and lst3 must scroll synchronous (if it is possible). I search for a scroll event (like in VB) but I can''t find it. Maybe you (all) have a solution for that.

Thank you again.


为什么不将所有数据放在同一列的不同列中ListBox控件?
Why not have all the data in separate columns of the same ListBox control?


这篇关于同步滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆