我刚刚开始学习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.
更多推荐
发布评论