如何更改表单“详细信息”部分的高度? [英] How to change the height of the 'detail' part of a form?

查看:98
本文介绍了如何更改表单“详细信息”部分的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何设置这个属性,但我真正想知道的是我如何将它设置为比它想要的更小的东西。


在连续子表单中,我有一组字段(全部位于详细信息部分的底部),通常我想要隐藏。点击一个按钮,我想将所有可见属性设置为 True


所以当字段不可见时,我想设置详细信息部分的高度,以排除房地产部分。为不可见的字段保留,然后,在单击按钮时,在我设置可见性属性的同时重置高度。


可以这样做吗?

I know how to set this Property, but what I''m really asking is how I can set it to something smaller than it wants to be.

On a continuous subform, I have a set of fields (all at the bottom of the Detail section) that normally I want to be invisible. On the click of a button, I want to set all their Visible properties to True.

So when the fields are invisible, I''d like to set the height of the Detail section to exclude the "real estate" reserved for the invisible fields, and then, on the click of the button, reset the height at the same time that I set the visibility properties.

Can this be done?

推荐答案

如果您先将所有控件移出该区域,则可以。然后在将它们显示之前将它们移回。
You can if you first move all the controls out of that area. Then move them back before you make them visible.


Rabbit ,将它们移动到哪里?你的意思是可见的细节的一部分吗?或者,也许,到页脚然后进入细节?
Rabbit, move them where? Do you mean just to a part of the detail that will be visible? Or, maybe, to the footer and then into the detail?


到一个可见的部分。可能来自他们所处的任何坐标(0,0)。当然,您必须跟踪它们的旧坐标,以便在需要时将它们移回。
To a part that will be visible. Probably from whatever coordinate they''re at to (0,0). You will, of course, have to keep track of their old coordinates so you can move them back when you need to.


这篇关于如何更改表单“详细信息”部分的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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