如何prevent控制在视觉上落后于调整内部的TableLayoutPanel? [英] How to prevent controls visually lagging behind on resize inside TableLayoutPanel?

查看:293
本文介绍了如何prevent控制在视觉上落后于调整内部的TableLayoutPanel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个中等复杂程度的基础上几个嵌套的的TableLayoutPanel s的布局。调整的形式使控制更深层的嵌套表内直观地滞后调整大小的后面。首先,这使得它们看起来像他们四处走动的形式被调整,但糟糕的是,控件的边缘明显修剪时,他们落后足以让他们的分配表格单元格。

I have a layout of medium complexity based on several nested TableLayoutPanels. Resizing the form causes the controls inside the deeper nested tables to visually lag behind the resize. Firstly, this makes them look like they move around while the form is being resized, but worse, the edges of the controls are visibly clipped when they lag enough to leave their allocated table cells.

有没有什么办法prevent这还是这最好的TableLayoutPanel 办?

Is there any way to prevent this or is this the best TableLayoutPanel can do?

修改:已经尝试了一堆方案我来,关于调整大小滞后是一种普遍存在的问题的结论。对我来说,似乎每个人都已经辞职,这是的不可避免接受的。当然,如果它的实际的不可避免的那么的接受的这是非常容易:)

Edit: Having experimented with a bunch of programs I came to the conclusion that lag on resize is a ubiquitous problem. To me, it seems that everyone has resigned that this is inevitable and acceptable. Of course if it's actually inevitable then accepting this is that much easier :)

要看到的滞后在你最喜欢的好UI程序最简单的方法:按住左侧边界调整它的大小和观看的所有右对齐控制跳来跳去(或者,顶界和放大器;底部对齐的控件,比如statusbars )。它打破了所有身边。

The easiest way to see the lag in your favourite "good UI" program: resize it by holding the left boundary and watch all right-aligned controls jump around (or alternatively, top boundary & bottom-aligned controls, like statusbars). It's broken all around.

如果任何人都可以提供很好的理由,使用原生的Windows控件,我会接受这个问题的答案时,这是不可避免的。此外,如果您发现使用本机的控制程序,这并不受此请说是这样,这可以帮助...

If anyone could provide good reasons why this is inevitable when using native windows controls I will accept that answer. Also, if you find a program using native controls that doesn't suffer this please say so, this could help...

推荐答案

这似乎并不可能在所有的,包括WPF(这实际上是更糟糕的 - 见<一href="http://stackoverflow.com/questions/1382915/how-to-fix-the-wpf-form-resize-controls-lagging-behind-and-black-background">this题)。 Qt可以避免这样的滞后性,如果Aero是启用的除外。唉...

This doesn't seem to be possible at all, including WPF (which is actually even worse - see this question). Qt can avoid such lag, except if Aero is enabled. Sigh...

这篇关于如何prevent控制在视觉上落后于调整内部的TableLayoutPanel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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