Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Delphi 的表单编辑器将控件捕捉到网格。组件可以在设计时获取对齐网格大小吗?
您可以从注册表中读取它。它位于您正在使用的版本中HKCU\Software\Embarcadero\BDS\10.0\Form Design(替换CodeGearorBorland和5.0,等)。8.0网格大小在Grid Size X和中可用Grid Size Y,以及是否SnapToGrid在 中启用Snap To Grid。
HKCU\Software\Embarcadero\BDS\10.0\Form Design
CodeGear
Borland
5.0
8.0
Grid Size X
Grid Size Y
SnapToGrid
Snap To Grid