k.e.d.r.
k.e.d.r.

Reputation: 65

How to avoid unwanted alignment of components when clicking in the Form Designer?

I'm using Embarcadero Delphi 10.3 Version 26.0.36039 on Windows 10.

Step 1: place aligned Edit and Button controls on the Form. (Edit.Top = 42)

Step 2: Move the Edit down 2 points (Edit.Top = 44)

Step 3: Click on the Edit. Bam! The control has moved two points up (Edit.Top = 42)

How to fix it?

image

Upvotes: 1

Views: 360

Answers (1)

HeartWare
HeartWare

Reputation: 8243

In addition to disabling "Snap to Grid" and/or "Use Designer Guidelines" in the environment, you can also press (and hold) the Alt key while dragging the component. This will (temporarily) disable the "Snap" feature while you're dragging.

Upvotes: 1

Related Questions