> I have a dialog in which I put a list pre-filled with some values. > The dialog dimensions are such that all the lines of the list don't fit in its > height. > However, instead of the list size being clamped to fit the dialog's client area, > I get a list control higher than the dialog.
That expected because you set the dialog size, and set its resize attribute to NO. > If the list is populated with less data, its dimensions are computed as I > expect them. > How can I tell the layout to clamp the list control dimensions to whatever is > made available by the dialog whatever its initial contents are? If you simply don't set the dialog size, the layout computation will automatically set the correct size. So in this case the list contents will dictate the dialog size. The Natural Size of the list is defined by its contents, but if you set the VISIBLECOLUMNS or VISIBLELINES attributes the contents will be ignored. > More generally, provided I don't shrink a dialog, and provided I don't force > control dimensions to something too big, it is normal for the layout to ever > compute control dimensions larger than the available space? Yes, because the default behavior for the list is to expand so all elements are visible, and since the dialog size is set, then the layout is larger than the available space provided by 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
