GridPanel中不先调整大小调整 [英] GridPanel does not adjust at first resize

查看:413
本文介绍了GridPanel中不先调整大小调整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我不能,即使我花了很长时间试图做到这一点来解决。

I have a problem I am unable to solve even though I spend long time trying to do it.

我通常使用GridPanels对齐控制形式。它有,然而,一个恼人的bug。当GridPanel中对齐方式为alClient我最大化它的父窗口中,GridPanel中调整到该窗口的新的大小,然而,铺设电网的控制不会。他们留在他们的窗口大小调整前相同的位置。 它发生仅在第一窗口的最大化。如果窗口先手动调整,everyting正常。我认为,网格中的第二resize事件(??)。

I usually use GridPanels to align controls on forms. It has, however, an annoying bug. When the GridPanel align mode is alClient and I maximize its parent window, the GridPanel adjusts to the new size of that window, however, the controls laying on the grid do not. They stay in the same position they were before window resize. It happens only at the first window's maximization. If the window is first resized manually, everyting is OK. I think the grid adjusts its child controls after the second resize event (??).

怎么做让GridPanel中正常工作,如果涉及到这个错误?这可能足以将消息发送给它(但什么消息?),我不知道。我试图用重新排列,刷新等,但他们并没有帮助。

What to to do make GridPanel work properly if it comes to this bug? It might be enough to send a message to it (but what message?), I do not know. I tried to use Realign, Refresh etc., but they did not help.

感谢您的帮助提前,

马里乌什。

推荐答案

啊,我也有类似的问题,以及。它可能与在VCL的调整大小的问题。你可能会想尝试由Andreas Hausladen 的修补程序。这似乎在大多数情况下为我工作。

Ah, I've had similar issues as well. It might be related to a resizing problem in the VCL. You might want to try the fix by Andreas Hausladen. It seems to work for me in most of the cases.

这篇关于GridPanel中不先调整大小调整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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