> So, I gather there is no real way to define a fixed layout from the outside in?
No. The layout is computed from inside out, and applied from outside in. Not the way around. > What I mean is: I want a given dialog dimension, then I want the layout to > expand my list controls so as to use the maximum available space. Once this > layout is computed, I don't want any list control dimension to change based > on its contents. > What you says is that I must start with control dimensions, and let the > layout compute the dialog size that fits the constraints? Yes. > I've just tested the following in my list: > > map_cb = function( self) > self.maxsize = self.rastersize > return iup.DEFAULT > end, -- map_cb > > That way, once the layout has computed a size, I force the list to limit its > dimensions to whatever the layout computed it. > Is this an 'endorsed' way of obtaining what I want? Yes. Good solution. The idea is just to stop any expansion from the elements inside the dialog. Best, Scuri ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
