I'm sure this is an oversimplification, but tell me what you think: Widget rc, list; rc = XtVaCreateManagedWidget ("rowcol", xmRowColumnWidgetClass, toplevel, XmNwidth, 200, XmNheight, 200, NULL); list = XtVaCreateManagedWidget ("list", xmListWidgetClass, rc, XmNrightAttachment, XmATTACH_WIDGET, XmNrightWidget, rc, XmNleftAttachment, XmATTACH_WIDGET, XmNleftWidget, rc, XmNtopAttachment, XmATTACH_WIDGET, XmNtopWidget, rc, NULL);
Tried it out, but it not yield the desired result, unfortunately. The list widget gets resized but it does not update the visible item count property. I need to somehow catch the resize event and update it manually, but I don't find any suitable callback.