2012/8/22 Antonio Scuri <[email protected]>

>
> > 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.
>
>
So, I gather there is no real way to define a fixed layout from the outside
in?
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?

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?

Regards,

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

Reply via email to