GUI SIze的问题 [英] problem with GUI SIze

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

问题描述





i一个来自不同控制的人但是当我在笔记本电脑中打开我的表格时,底部的控件是不可见的。

hi

i ahve one from with differnt control but when i open my form in the laptop the Control which are at the bottom are not visible.

推荐答案

这取决于您使用的应用程序类型或UI框架/库。在涉及UI时,您需要在问题中标记这些重要事项。所以,对不起,我的回答非常一般。



你应该让你布局流畅,避免任何绝对的大小和位置。任何一个。例如,使用 System.Windows.Forms 可以使用属性 Dock 完成所有操作填充,以及基于XAML的框架(如WPF的情况),您可以使用 Grid (在大多数情况下更灵活)和/或 DockPanel



请查看我过去的答案:

当屏幕分辨率发生变化时,Zom Out出现故障 [ ^ ],

如何停靠按钮,以便可以使用表格进行调整 [ ^ ]。



另外,你所说的不是屏幕分辨率。它是屏幕的大小,以像素为单位。分辨率是不同的(每英寸行数或毫米数,每英寸像素数或毫米数等)并且几乎无关紧要。



-SA
It depends on your application type or UI framework/library you are using. You need to tag such important things in your question when UI is involved. So, sorry, my answer will be pretty general.

You should make you layout fluid and avoid any absolute size and positions. Any at all. For example, with System.Windows.Forms everything can be done using the properties Dock and Padding, and with frameworks based on XAML (as in case of WPF), you can use Grid (which is more flexible in most cases) and/or DockPanel.

Please see my past answers:
Zom Out malfunctions when Screen resolution changes[^],
how to dock button so that it can adjust with the form[^].

Also, what you are talking about is not the screen resolution. It is the size of screen in pixels. Resolution is something different (lines per inch or mm, pixels per inch or mm, etc.) and is almost irrelevant.

—SA


你还没有指定你正在使用的框架。

所以,如果你正在处理 WPF(XAML)

Grid和Container广泛用于创建UI,参见 WPF教程:Layout-Panels-Containers&布局转换 [ ^ ]

如果它是表单应用程序,你只需要玩 Dock,Padding,Margin 控件的属性。



-KR
You have not specified the framework you're using.
So if you're dealing with WPF (XAML)
Grid and Container are widely used to create UI, See WPF Tutorial : Layout-Panels-Containers & Layout Transformation[^]
And if it is form application, you just have to play around with the Dock, Padding, Margin properties of the control.

-KR


这篇关于GUI SIze的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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