C++Language FeatureLearn C++

Quickly Learn About Basic Windows Components In C++ Development (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.

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

Learn about C++ Encapsulation

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

Discover Class Methods in C++

C++Learn C++Videos

Learn C++ With Monoids, Monads, and Applicative Functors: Repeated Software Patterns (CPPCon 2020) Video

C++Learn C++Videos

Learn C++ With Pipes: How Plumbing Can Make Your C++ More Expressive by Jonathan Boccara (CPPCon 2020) Video

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