It is a feature. J
There is no need to minimize to see the problem. After a minimize, the
layout is recomputed, as in a normal size, so if you allow the dialog to be
resize you will be able to see the same behavior while resizing the dialog
interactively. Another way to reproduce the minimize effect is to call
iup.Refresh(dlg) after populating the list, the layout will be recomputed
and the list will be larger than the available space.
Now if you want the list to have its size not dependent on its contents,
add for example:
visiblelines=5,
to you sample and the behavior will be what you expect.
Since several elements can expand, based on its contents change or based
on the EXPAND attribute the size of the dialog and the size of the layout
can be controlled independently, so consequently this behavior can occur.
Then what we have to do is to control the size of the elements so they do
not expand more than what we want.
Best,
Scuri
From: Benoit Germain [mailto:[email protected]]
Sent: quarta-feira, 22 de agosto de 2012 12:46
To: IUP discussion list
Subject: [Iup-users] [Windows 7 64 bits, IUP 3.6] Problem with layout
recomputation at window restoration
Hello,
Run the attached script to observe the following:
A dialog is created that contains a list prefilled with some values, and a
text control.
Press the "populate" button to add lines to the list so that the contents
don't fit in the visible area and the scrollbar appears.
Minimize, then restore the window.
The list control is now resized to fit its new contents, expanding beyond
the dialog vertically. The text is also pushed to the right and expanded
vertically to match the new list control height.
Is it a bug or a feature :-)?
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