List widget entries not displayed

I am trying to create a list by using xmListWidgetClass with vertical
scroll bar inside xmScrolledWindowWidgetClass, the code snippet is as
below

abc = XtVaCreateManagedWidget( "abc",
xmScrolledWindowWidgetClass,
def,

abc_list = XtVaCreateManagedWidget( "abc_list",
xmListWidgetClass,
abc,
NULL );

But if i popluate the abc_list with more than 5000 rows and try to
open the application i see a blank list with vertical scrollbar. If i
forcefully select items via mouse the items get highlighted but once
after moving the vertical scroll bar and trying to see the list
contents makes the list items invisible.

Can anybody suggest some solutions, is there a limit on the no of
items we can put in the list


Yuriy Syrota

Yuriy Syrota's picture

List widget entries not displayed

It is a Xt design flaw. For coordinates it uses short type, so position cannot be more than 32767. So container cannot have children with any coordinate bigger than 32767.

However, I believe it is a pain for the user to find something in list of more than 5000 elements.