DelphiDelphiVCLPythonPython GUIWindows

Specify the Alignment of a Control using Align or TAlign

This Is The DelphiVCL.Application.ModalLevel Property

Align or TAlign is used to specify the alignment of control within its parent. TAlign specifies how control is placed relative to its parent.

It can have one of the following values:

Value Meaning
alNone The control remains where it was placed. This is the default value.
alTop The control moves to the top of its parent and resizes to fill the width of its parent. The height of the control is not affected.
alBottom The control moves to the bottom of its parent and resizes to fill the width of its parent. The height of the control is not affected.
alLeft The control moves to the left side of its parent and resizes to fill the height of its parent. The width of the control is not affected.
alRight The control moves to the right side of its parent and resizes to fill the height of its parent. The width of the control is not affected.
alClient The control resizes to fill the client area of its parent. If another control already occupies part of the client area, the control resizes to fit within the remaining client area.
alCustom The control’s positioning is determined by calls to its parent’s CustomAlignInsertBefore and CustomAlignPosition methods.

Here is the working example of the implementation of Align in MainPanel creation:

Here is the working example of the implementation of Align in PageControl creation:

 

See the complete code here.

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

close
Related posts
Learn PythonPythonPython GUIWindows

What Are The Differences Between C++ and Python?

DelphiDelphiVCLPythonPython GUIWindows

What Is The Deallocates Method And What Does It Do?

DelphiDelphiVCLPythonPython GUIWindows

What You Need To Know About The Observers Property

DelphiLearn PythonPythonPython GUIRAD StudioWindows

What You Need To Automatically Scrape Millions Of Tweets

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

ru_RURussian