![]() |
Maximale Anzahl von Items
Hallo liebes Forum.
Ich habe folgende simple Frage: Wie viele Einträge passen heutzutage maximal in eine Delphi Listbox? |
AW: Maximale Anzahl von Items
1000 - es sei denn sie ist virtual.
|
AW: Maximale Anzahl von Items
mehr passen schon rein, aber ab 'ner Million kann das doch keiner mehr bedienen.
|
AW: Maximale Anzahl von Items
Zitat:
Zitat:
|
AW: Maximale Anzahl von Items
Zitat:
try this
Delphi-Quellcode:
On my Windows 10 and My Delphi XE8 and with EXTRA at 50 it start to behave erratically when you drag the scrollbar in big steps to the end, but will show them (items) correctly if you used different way of scrolling like mouse wheel, and this might be a problem in VCL and not in the OS itself.
procedure TForm10.Button1Click(Sender: TObject);
const EXTRA = 1; //EXTRA = 50; var i: Integer; begin ListBox1.Items.BeginUpdate; try for i := 0 to 1024 * 32 * 2 + EXTRA do ListBox1.Items.Add(IntToStr(i)); finally ListBox1.Items.EndUpdate; end; end; As for Microsoft suggestion, it is merely a best practice, with Windows themes and font scaling the cache used by the OS does suffer with huge amount of items, thus the suggestion to switch to virtual mode, but this happen only with specific theming a long with specific scaling with small memory GPU cards. |
Alle Zeitangaben in WEZ +1. Es ist jetzt 04:44 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz