C++ComponentsLanguage FeatureLearn C++

Quickly Learn About Basic Windows Components In C++ Development (QuickLook Part 5)

focus photography of sea waves

Panel

Panel (TPanel) is a general-purpose panel used to hold multiple controls for organizing purposes. It is used to hold some group of your components. Generally they are used with Alligns. We highly recommend you to align Panels to Left, Right, Top, Bottom or Client. Thereby, your application with contents in different panels may resize itself by the change of resolution, by the change of windows size or by the change of device used. This will make your application more friendly with size proportions.

We recommend you to use aligns but in same cases you can change its size manually as below too;

Layout

A Layout (TLayout) is a container for other graphical objects. It is same as Panels, while Panels has borders and background color, Layout has no depth, no color. It is good to align group of components. It can be also used on your custom graphics by using in the Images. Layouts are graphically lighter than Panels.

ScaledLayout

ScaledLayout (TScaledLayout) is same as Layout except it is scaling everything inside when its size is changed.

We can let user to scale your layout by using Splitter or any other components. We can also change its original and current Width and Height as below.

GridLayout

A GridLayout (TGridLayout) is a container with grids for graphical objects that can arrange the objects. It is good to arrange matrix based objects.

FlowLayout

 FlowLayout (TFlowLayout) is a control that arranges its child controls as if they were words in a paragraph. The direction of the controls flow can be from left to right or from right to left. To change the direction, set the FlowDirection property. Changing the direction does not change the line of the control, only the order of the controls on each line.

Spliter

Spliter (TSplitter) divides the client area of its previous area into resizable panes. So user can easily resize both panes (i.e Panels). It should be Aligned to two panes, You can set its orientation to Vertical or Horizontal by using Align to Left, Right or Top, Bottom.

In some operations you may need to arrange these two panes by its position;

Oh hi there 👋
It’s nice to meet you.

Sign up to receive awesome C++ content in your inbox, every day.

We don’t spam! Read our privacy policy for more info.

About author

Dr. Yilmaz Yoru has 35+ years of coding with more than 30+ programming languages, mostly C++ on Windows, Android, Mac-OS, iOS, Linux, and some other operating systems. He graduated and received his MSc and PhD degrees from the Department of Mechanical Engineering of Eskisehir Osmangazi University. He is the founder and CEO of ESENJA LLC Company. His interests are Programming, Thermodynamics, Fluid Mechanics, Artificial Intelligence, 2D & 3D Designs, and high-end innovations.
Related posts
C++C++11C++14C++17C++20Introduction to C++Learn C++

Learn Copy Constructors in C++ Classes

C++C++11C++14C++17Introduction to C++Learn C++Syntax

Learn How To Use Types Of Destructors In C++?

C++C++11C++14Learn C++Syntax

How To Convert u32string To A wstring In C++

C++C++11C++14C++17C++20Introduction to C++Learn C++

How To Learn The Move Constructors In Modern C++?

Worth reading...
Learn Basic Components in C++ Builder (QuickLook Part 1)