[Iup-users] IupList, Adding/Removing items resizes control

Antonio Scuri scuri at tecgraf.puc-rio.br
Mon Apr 14 11:20:34 GMT+2 2008


  That' weird, because the list natural size will be used only if the user
size is NOT set. In other words, the list will expand or contract to its
contents only when SIZE and RASTERSIZE are NOT set.

  Check if you set SIZE to NULL somewhere.

Best,
scuri

> -----Original Message-----
> From: iup-users-bounces at lists.luaforge.net 
> [mailto:iup-users-bounces at lists.luaforge.net] On Behalf Of 
> Jeremy Cowgar
> Sent: domingo, 13 de abril de 2008 20:46
> To: IUP discussion list.
> Subject: [Iup-users] IupList, Adding/Removing items resizes control
> 
> 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
> 
> 
> _______________________________________________
> iup-users mailing list
> iup-users at lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/iup-users
> 




More information about the iup-users mailing list