GtkD - how to list 0..100K strings

Mike Wey mike-wey at example.com
Sun Apr 26 12:25:08 UTC 2020


On 26-04-2020 10:06, mark wrote:
> I'm trying to develop an application in GtkD.
> 
> I need a widget to display a list of strings: there could be anything 
> from 0 to 100K strings, but typically a few hundred or thousand.
> 
> Using the DemoCustomList as a model I have created this code:
> 
> ...
> 
> When populateNames() is called the treeview expands horizontally but 
> shows nothing, so I'm stuck.
> 
> Can anyone help?
> 
> Note that I don't have to use a tree widget if there's a better one for 
> this use case. I did see ListBox but that seemed to be a list of widgets 
> which would be a bit heavy for 100K strings?

The code looks correct, do you have something that compiles so that we 
can test where things go wrong?

-- 
Mike Wey


More information about the Digitalmars-d-learn mailing list