Site icon Learn 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

[crayon-6622c2edd25b1778355003/]

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.

[crayon-6622c2edd25b8543462400/]

ListBox

TListBox displays a set of items in a scrollable list.

[crayon-6622c2edd25bb564384256/]

ListView

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

[crayon-6622c2edd25bc356181914/]

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.

[crayon-6622c2edd25be644398457/]

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.

Exit mobile version