Recent

Author Topic: Aligning two buttons (etc.) relative to the middle of a form  (Read 594 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 3033
Aligning two buttons (etc.) relative to the middle of a form
« on: August 28, 2021, 09:04:40 am »
When a form has "Cancel" and "OK" buttons, it's easy enough to align them to the bottom using the anchor editor.

How does one align them horizontally, particularly if the form can be resized? Is there some datum running up the middle of the form to which the anchor editor can refer, or is the best way to put e.g. a zero-width bevel in the middle of the form as a dummy control relative to which others can be anchored?

MarkMLl
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018