macos - Delphi fmx移动无边界表格

标签 macos delphi

快速移动鼠标时,如何在Delphi FMX中移动表格。 ?
我尝试了下面的代码,但是当您快速移动鼠标时,它停止工作。

How to drag a borderless FMX form on the screen through another object?

最佳答案

尽管在文章链接中提到它是OP的评论,但我认为在此添加它也不会有什么坏处,因为这不是公认的答案,有些人以后搜索它可能会错过它。还要确保它实际上是鼠标左键,除非您也想使其与其他按钮一起拖动。

procedure TMyForm.DragPanelMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Single);
begin
  if (Button = TMouseButton.mbLeft) then StartWindowDrag;
end;

关于macos - Delphi fmx移动无边界表格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21936603/

相关文章:

iphone - 什么是.DS_Store

linux - Flutter Linux 和 MacOS & Web : The provided ScrollController is currently attached to more than one ScrollPosition

delphi - 在 TFS MSBuild 下运行 Delphi 构建

ios - 在 iOS 上后台运行应用程序

delphi - 在delphi中访问其他.exe数据的最简单方法是什么?

macos - 您没有/Library/Ruby/Gems/2.3.0 目录的写权限。 (mac 用户)

objective-c - [Mac]如何在系统栏菜单中重现从cloudapp拖放?

git --version 在终端上显示错误的版本

sql - TADOTable——可以用于插入吗?

Delphi 2007 和 {$IFDEF...} 指令,无法看到我们的条件