使用水平滚动条移动子窗体 [英] Move subform with horizontal scroll bar

查看:94
本文介绍了使用水平滚动条移动子窗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我在主窗体上使用子窗体作为一种菜单选择。我想在移动主体水平滚动条时将子窗体保留在屏幕中间。


我可以使用水平滚动条上的事件吗?


用什么方法在主窗体上移动子窗体?

Hi

I use a subform on a mainform as a type of menu selection. I want to keep the subform in the middle of the screen when the mainform horizontal scroll bar is moved.

Is there an event on the horizontal scroll bar I can use?

What method is used to move a subform on a main form?

Thanks

推荐答案

reginaldmerritt,


一种可能的解决办法,就是让你的主要形式成为另一种形式的子形式。然后将原始子表单放在新的主表单上。原始主表单(现在是子表单)可以单独向左或向右滚动,原始子表单(现在是不同主表单上的子表单)将是静止的。


您必须调整数据的所有主/子关系,以确保所有表单都链接在一起,但这可能是最简单的解决方法,而不是尝试编码确定表单移动到底有多远,然后移动子表单。


如果你在这方面取得任何进展,请告诉我....
reginaldmerritt,

One possible sollution, would be to actually make your main form a subform on another form. Then place your original subform on that new master form as well. The original master form, now a subform, could scroll to the left or right in its own right, and the original subform, now a subform on a different master form, would be stationary.

You would have to tweak all the master/child relationships for data to make sure that all the forms were linked together, but it might be the easiest way to solve, rather than trying to code figuring out exactly how far a form has moved, then moving the subform.

Let me know if you make any headway on this....


谢谢twinnyfo这是一个很好的建议。


主要表格是连续多记录表格。如果我将主窗体设为子窗体,则在子窗体内设置垂直滚动条;在具有大显示屏的工作站上查看数据库时,这并不能很好地显示。但是很好的建议,谢谢。
Thanks twinnyfo that''s a good suggestion.

The main form is a continuous multi record form. If I make the mainform a subform the vertical scroll bar would be set within the subform; and this doesn''t display well when viewing the database on a workstation with a large display. but nice suggestion though, thanks.


我不知道你有什么类型的数据,这需要如此广泛的记录视图....有没有理由你不能''把一整条记录放在一个视图中?即使您为整个记录制作了相当宽的高视图,它也可能有所帮助。但是,根据您的描述,我理解您希望能够移动该子表单。


还在考虑这个.........
I don''t know what type of data you have, that requires such a wide record view.... Is there a reason you couldn''t put one entire record in a view? Even if you made a reasonably wide, tall view for the entire record, it might help. But, based on your description, I understand your desire to be able to move that subform.

Still thinking about this one.........


这篇关于使用水平滚动条移动子窗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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