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;

close

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.


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial

Free C++Builder Community Edition

About author

33+ years of coding with more than 30+ programming languages, mostly C++ on Windows, Android, Mac-OS, iOS, Linux and some other operating systems. Dr. Yilmaz Yoru was born in 1974, Eskisehir-Turkey. He graduated from the department of Mechanical Engineering of Eskisehir Osmangazi University in 1997. One year later he started to work in the same university as an assistant. He received his MSc and PhD degrees from the same department of the same university. He has married and he is a father of a son. Some of his interests are Programming, Thermodynamics, Fluid Mechanics and Artificial Intelligence. He also likes the graphical 2D & 3D design and high-end innovations.
Related posts
C++C++11C++14C++17Learn C++

How To Use The All-Powerful swscanf function In Your C++ App

C++ComponentsLanguage FeatureLearn C++

How To Use A Sharpen Effect in C+ Software On Windows?

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

What Is The Erase WString Method In A Modern C++ App

C++C++17Introduction to C++Learn C++

This Is How Trivial Copy Constructors Work In A C++ App

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