简体   繁体   English

Borland C ++ Builder 6调整输出可执行文件的大小以适合屏幕

[英]Borland C++ Builder 6 resize output executable to fit screen

In Borland C++ Builder 6 is it possible to customize the resolution of the output executable to fit any screen? 在Borland C ++ Builder 6中,是否可以自定义输出可执行文件的分辨率以适合任何屏幕?

I built an executable at my laptop (1366x768) but I want to use it at another computer with lower resolution. 我在笔记本电脑(1366x768)上构建了一个可执行文件,但我想在另一台分辨率较低的计算机上使用它。

The reason I want to do that is because the destination computer has smaller touchscreen and I don't want to use scroll-bars. 我之所以要这样做,是因为目标计算机的触摸屏较小,并且我不想使用滚动条。

You should design your UI with a smaller resolution in mind to begin with and then design it to stretch to higher resolutions when needed. 首先,您应该在设计UI时考虑较小的分辨率,然后在需要时将其设计为扩展到更高的分辨率。 You are trying to do the opposite, which won't work as well. 您正在尝试相反的做法,但效果也不佳。 It is easier to stretch a UI than to shrink it. 扩展UI比收缩UI容易。 With that said, the Anchors and Constraints properties on individual controls, and the Scaled property on Forms, are your friends, you should use them if you are not already. 话虽如此,单个控件上的AnchorsConstraints属性以及Forms上的Scaled属性是您的朋友,如果尚未使用,则应使用它们。 Anchors in particular, because it allows you to stretch and shrink a Form while maintaining the relative layout of its controls. 特别是Anchors ,因为它允许您在保持窗体控件相对布局的同时拉伸和缩小窗体。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM