form designer ate my button

Go down

form designer ate my button

· #1

i wanted to move a button like 2 pixels so i dragged it

now the button is gone and the form is 4000 pixels wide

did not save. did not undo. pressed ctrl+s out of habit. what now

Re: form designer ate my button

· #2

pressed ctrl+s out of habit

A moment of silence.

Pete · thirty years of begin and end "It compiled on my machine."

Re: form designer ate my button

· #3

The button is not gone. It is at Left = 3870, where you dropped it, and the form grew to fit.

Open the .lfm (right-click the form, View Source (.lfm)) and look:

text
object Button1: TButton
  Left = 3870
  Height = 25
  Top = 12
  Width = 75
  Caption = 'OK'
end

Change Left to something civilized, set the form's Width back, and switch back to the designer.

Re: form designer ate my button

· #4

And for next time: select the control and use Ctrl + arrow keys to nudge it one pixel at a time. The mouse is for people with steadier hands than any of us.

Re: form designer ate my button

· #5

fixed. button is back

also found three other buttons out there. no idea how long they have been living at left = 3000

Re: form designer ate my button

· #6

They had a good life. Bring them home.

Forum rules 1 to 10 apply. Yes, to you.

Go up

Sign in to reply