I nudged a button and moved the entire panel

Go down

I nudged a button and moved the entire panel

· #1

THE SAVE BUTTON NEEDED TO MOVE TWO PIXELS. THE WHOLE PANEL MOVED. THE SAVE BUTTON IS NOW THE LEAST OF MY PROBLEMS.

sorry. could the forum have a place for designer questions involving very small distances and very large consequences?

SORRY ABOUT THE CAPS

Re: I nudged a button and moved the entire panel

· #2

The lazarus board is suitable. For this one, undo the move, then select the button by name in the Object Inspector's component tree. Confirm the selected component before changing Left or Top numerically.

Dragging a panel's exposed background selects the panel. A control with Align set or with layout controlled by its parent may not accept the position you expect. Check those properties before trying another drag.

Re: I nudged a button and moved the entire panel

· #3

the tree showed Panel1. i changed the selection to SaveButton, entered the two pixel adjustment in Left, and it worked.

the panel has returned to its original responsibilities.

SORRY ABOUT THE CAPS

Re: I nudged a button and moved the entire panel

· #4

If a later resize moves the button again, inspect its anchors and the parent's layout settings. A design-time coordinate is one input to layout, not a promise that every window size will preserve it.

Also inspect the selected component's name before editing its caption. That is how a panel ends up labeled Save.

Re: I nudged a button and moved the entire panel

· #5

There is already room on the Lazarus board for two pixels.

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

Go up

Sign in to reply