绝对定位(无布局管理器)与MiGlayout中的绝对定位 [英] Absolute positioning (No layout manager) vs. absolute positioning in MiGlayout

查看:178
本文介绍了绝对定位(无布局管理器)与MiGlayout中的绝对定位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当使用MiGlayout中的绝对定位作为布局管理器而不使用布局管理器(将布局管理器设置为空)时,最终应用程序结果在不同平台和分辨率等方面是否相同?

Will the final application result be identical across different platforms and resolutions etc. when using absolute positioning in MiGlayout as the layout manager compared to using no layout manager (Setting layout manager to null)?

MiGlayout解决方案中的绝对定位与无布局管理器解决方案之间是否存在差异?

Is there a difference between the absolute positioning in MiGlayout solution vs. the no layout manager solution?

推荐答案

想想这个。即使您为应用程序提供单一字体,它也会在不同的操作系统上呈现不同的颜色,甚至可以在不同的DPI下在相同的操作系统上呈现不同的颜色。

Think about this. Even if you supply a singe font for your application, it will be rendered differently on different OSs, it can even be rendered differently on the same OS under different DPI.

布局管理员可以防止出现这些问题,当然,当你第一次开始使用它们时,它们似乎会妨碍它们,但是一旦你习惯了它们,你就永远不想没有(尝试用VB编写代码,否则告诉我)

Layout managers are your protection against these problems, sure, when you first start using them, they seem to get in the way, but once you get use to them, you'll never want to do without (try coding in VB and tell me otherwise)

布局管理器让您专注于流量控制和可用性的复杂性,而不必担心它如何以比您设计的大2磅的字体出现,或者在较大/较小的屏幕分辨率上。

Layout managers let you focus on the complexities of flow control and usability, without having to worry how it might appear at a font 2pts larger then you are designing with, or on larger/smaller screen resolutions.

我花了两年的时间撤消了之前开发人员的工作,他们坚持使用Arial字体和手动设置元件尺寸因为他认为他不能不能让他的表格正确布局。我从用户那里获得的有关变化的反馈都是积极的,我们现在正在寻求在应用程序中实现动态字体大小调整。如果没有布局管理器,我就无法尝试。

I've spent 2 years undoing the previous developers work who insisted on using Arial font and manually setting of component sizes because he believed he couldn't get his forms to layout properly. The feed back I have from users about the change has all been positive and we're now looking to implementing dynamic font resizing into the application. There is no way I'd try that without layout managers.

我说你有更好的机会使用MigLayout然后你没有-IMHO

I'd say you have a better chance with MigLayout then you do without -IMHO

这篇关于绝对定位(无布局管理器)与MiGlayout中的绝对定位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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