XP V的WIN 7对话框和控制尺寸 [英] XP V's WIN 7 Dialog & Control Size

查看:66
本文介绍了XP V的WIN 7对话框和控制尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个无法解决的奇怪问题.

编译后,我在XP机器上的VS2008中的项目运行良好,对话框大小根据IDE设计绘制了控件.

当我在XP中运行此EXE时,效果很好.但是,当我在Windows 7机器上运行它时,它似乎表明所有事物都变大了或扩展了,并被对话框边缘的边缘截断了.

我将根据在EXE运行期间选择的功能,在构建过程中以及在操作过程中动态地定位控件和调整控件的大小.即按按钮和对话框,将X的数量扩大得更大,再按一次,它就会缩小.

它缝出了AutoScaleMode的问题,但无法缝出合适的解决方案/解决方案吗?

有没有人提出解决方案的解决方案或很好的解释?

请帮助将不胜感激. :(

Hi Guys,

I have a strange problem that I can''t resolve.

My project in VS2008 on my XP machine when compiled runs nicely and dialog size a paints controls as per IDE design.

When I run this EXE in XP it works fine. However when I run it in Windows 7 machine it seams that every thing is bigger or expanded and gets cut off by the edge of the dialog edge.

I am locating and size controls dynamically during the build and while in operation based on functions selected during the running of the EXE. i.e. Press button and dialog expands X amount bigger, press again and it shrinks.

It seams the AutoScaleMode is the problem but can''t seam to find a reasonable fix / resolution for this?

Does anyone have a solution or good explanation for to formulate a fix?

Please help would be very much appreciated. :(

推荐答案

不幸的是,如果不看项目,很难确定地说什么,但是听起来您正在使用过分僵硬的UI设计风格.

也许我过去的解决方案中的一些想法和我的小代码示例可以为您提供帮助:
GUI外观-C#.Net [当屏幕分辨率改变时,Zom Out发生故障 [ ^ ],
如何停靠按钮,以便它可以使用以下格式进行调整 [
Unfortunately, it''s hard to say anything for sure without looking at your project, but it sounds like you are using overly stiff style of UI design.

Perhaps some ideas and my tiny code sample from my past solution could help you:
GUI Apperance - C#.Net[^],
Zom Out malfunctions when Screen resolution changes[^],
how to dock button so that it can adjust with the form[^].

—SA


这篇关于XP V的WIN 7对话框和控制尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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