Motif/Xt: Dynamically resize the visible item count of an XmList

Holger Sebert holger.sebert at ruhr-uni-bochum.de
Thu Dec 9 21:20:04 UTC 2021


> 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.


More information about the xorg mailing list