C++C++11C++14C++17ComponentsLanguage FeatureLearn C++

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

This post about listing String and displaying methods as fast as possible in Modern C++, in C++ Builder FireMonkey projects. In general if you have many String additions to you component, you must use BeginUpdate() and EndUpdate() methods of that Class member to do these operations faster. In normal way most of Components are also doing this addition method faster.

Memo and StringLists (TStringList)

We can directly copy list of unicode strings by using TStringList. We need to use BeginUpdate() and EndUpdate() methods over this TStringList and add all lines to Memo1 to display

Memo

We can use Memo to display lines directly. TMemo is a multiline text editing control, providing text scrolling. If you want to update all faster, use BeginUpdate() and EndUpdate() methods as same above.

ListBox

TListBox displays a set of items in a scrollable list.

ListView

TListView displays a collection of items in a list that is optimized for LiveBindings and for fast and smooth scrolling.

StringGrid

TStringGrid represents a grid control like Xxcel tables, designed to simplify the handling of strings. We can use this grid to display strings or numbers converting to String by using IntoToStr() or FloatToStr() functions.

As in these examples you can update and display your different kind of variables very fast in these components. They have different benefits while most are same in speed to add your variables.

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

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 was born in 1974, Eskisehir-Turkey, started coding in college and graduated from the department of Mechanical Engineering of Eskisehir Osmangazi University in 1997. He worked as a research assistant at the same university for more than 10 years. He received his MSc and PhD degrees from the same department at the same university. Since 2012, he is the founder and CEO of Esenja LLC Company. He has married and he is a father of a son. Some of his interests are Programming, Thermodynamics, Fluid Mechanics, Artificial Intelligence, 2D & 3D Designs, and high-end innovations.
Related posts
C++C++11C++14C++17C++20Learn C++Syntax

What Is A Forced (Default) Copy Assignment Operator In Modern C++

C++C++11C++14C++17C++20Learn C++Syntax

What is Implicitly-declared Copy Assignment Operator In C++?

C++C++11C++14C++17C++20Learn C++Syntax

What is Avoiding Implicit Copy Assignment In C++?

C++C++11C++14C++17C++20Learn C++

Typical Declaration Of A Copy Assignment Operator Without std::swap

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