如何使表单与屏幕边缘对齐(How to Make a form snap to edges of the screen)

编程入门 行业动态 更新时间:2024-10-26 15:22:32
如何使表单与屏幕边缘对齐(How to Make a form snap to edges of the screen)

我刚刚开始学习Firemonkey,所以如果问题很愚蠢,请不要踢。 如何制作贴在屏幕边缘的Firemonkey表格。 在VCL中可以通过使用属性ScreenSnap:= true和SnapBuffer:= 15来轻松完成。 另一种方式 - 处理消息WM_WWINDOWPOSCHANGING或WM_MOVING。 如何使用FireMonkey进行相同的操作?

谢谢。

I just recently started learning Firemonkey, so if the question is stupid, please do not kick. How can I make a Firemonkey form that sticks to the edges of the screen. In VCL is easily done by using the properties ScreenSnap: = true and SnapBuffer: = 15 for example. Another way - processing messages WM_WWINDOWPOSCHANGING or WM_MOVING. How can I make the same with FireMonkey?

Thanks.

最满意答案

由于FMX是平台中立的,因此执行特定于平台的事情要困难得多。 使用Delphi XE3附带的FM2应该会变得容易一些。

对于Delphi XE2,可能最简单的方法是将您的FMX内容包装在VCL表单中。

Since FMX is platform neutral, doing platform specific things is a lot harder. It should become a little easier with FM2 that ships with Delphi XE3 now.

For Delphi XE2, probably the easiest way is to wrap your FMX stuff in a VCL form.

更多推荐

本文发布于:2023-08-02 17:01:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1378630.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表单   边缘   屏幕   form   edges

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!