[Iup-users] IupList, Adding/Removing items resizes control
Jeremy Cowgar
jeremy at cowgar.com
Sun Apr 13 21:46:28 GMT+2 2008
I have an IupList and I set SIZE=100x50,EXPAND=VERTICAL. I want it to be
50 wide regardless of it's content.
Now, this works fine, but when I add or remove an item to/from the list,
the list control resizes itself to fit the new lists "width" (which in
all my testing has been smaller). This makes things look pretty weird.
So, I found that I can do:
IupStoreAttribute(hList, "SIZE", "100x50");
IupRefresh(hList);
and that will put it back to normal. However, this causes the whole
dialog to resize all the controls. This happens in an instant but it
does create an annoying flash.
Any ideas?
Jeremy
More information about the iup-users
mailing list