Jump to content
bresson

Delphi IDE Moving components undo or similar?

Recommended Posts

When designing forms I often accidently move some checkbox or something, just by clicking it (to inspect click event or such), if you click at the edge etc. it moves slightly (or maybe thats just me). Is there any way to undo this?
What I usually do is make sure everything is saved and/or commited before I do any form designing, so if I accidently move something I can just give up and restart (and not save), or compare changes with repository to reverse (or discard) what ever I accidently moved. Everytime I revisit Delphi I encounter this again and get the feeling "oh yeah that trap is still there" .. Maybe I'm just missing some nice tip (besides locking components).

Edited by bresson

Share this post


Link to post
1 hour ago, bresson said:

When designing forms I often accidently move some checkbox or something, just be clicking it (to inspect click event or such), if you click at the edge etc. it moves slightly (or maybe thats just me). Is there any way to undo this?
What I usually do is make sure everything is saved and/or commited before I do any form designing, so if I accidently move something I can just give up and restart (and not save), or compare changes with repository to reverse (or discard) what ever I accidently moved. Everytime I revisit Delphi I encounter this again and get the feeling "oh yeah that trap is still there" .. Maybe I'm just missing some nice tip (besides locking components).

It happens to me, too.

When possible, I hold down Ctrl and then left mouse button to select the component.

Missing Undo is annoying 😕

  • Like 1

Share this post


Link to post

This is one place using the IDE Insight helps greatly. In the design window.

  • use <F6> if your fingers are on the top row of the keyboard.
  • or simply the <Ctrl .> if closer to bottom row. 
  • type in Control name or Class type of control. 
  • Select with Enter Key.  
  • Press <F11> then the Object inspector finder is focused and type in property to edit.

 

Or  simply tab thru the controls, moving/sizing them with control keys Shift or Ctrl with the arrow keys.  Avoiding this practice in your case by simply pressing <F11> key instead. (Also verifies the tab order)

 

Or the Structure panel is either mouse able or arrow keys to avoid touching the controls with mouse in the design window.    

 

Or View revisions by selecting Alt-F12 and select History there. 🙂

Edited by Pat Foley
View revisions by selecting Alt-F12 and select History

Share this post


Link to post

Just close the page (form), do not save, and reopen

In this case this is what I do

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×