其他机器上的GUI不同 [英] GUI different on other machine
本文介绍了其他机器上的GUI不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在带有.NET 4.0的VS 2010 pro的Windows 7计算机上开发了一个应用程序.在我的机器上看起来不错.但是,当我在Windows XP机器上运行该应用程序时,GUI发生了变化:某些标签在窗口下方(变小,用户必须调整窗口大小才能看到它们,按钮上的图像变大等等).
无论如何,我可以防止这种情况发生吗?换句话说:如何确保用户(即Windows XP)与我看到的一样?
预先感谢!
Hi,
I have developed an application on a windows 7 machine in VS 2010 pro, with .NET 4.0. It looks good on my machine. But when I run the application on a Windows XP machine the GUI is changed: Some labels are beneath the window (to low and the user has to resize the window to see them, images on buttons are to big etc).
Is there anyway I can prevent this? In other words: How can I make sure the user (i.e. Windows XP) sees the same as I do?
Thanks in advance!
推荐答案
表单本身应该有一个属性,例如要继承的"scalemode"或"scale"集,因此它从窗口继承其内..
否则,您可以将控件设置为width = 100%等,也可以动态移动它们-缩放比例是您的最佳选择.
there should be a property on the form itself, like a ''scalemode'' or ''scale'' set that to inherit so it inherits from the window its in..
otherwise you can set the controls'' to have width=100% etc or move them around dynamically - scale is your best bet tho..
这篇关于其他机器上的GUI不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文