Hi,
I have a multiple selection list control. During the operation if I
put a lot of elements in the list element the scroll bars show up. But if
the dialog is resized the list control size immediately explodes to however
large it needs to be to remove the scrollbars and goes beyond what the
dialog shows. How can I force the list control to not resize automatically
beyond the dialog boundaries?
The example to show the problem is below. To replicate click the Add
button and then resize the dialog.
require( "iuplua" )
list = iup.list{MULTIPLE="YES",["1"]="One",["2"]="Two"}
button = iup.button{title="ADD",expand="YES"}
vbox = iup.vbox {
iup.hbox{
list,
iup.label {title="Label"},
iup.text { border="NO"; value="This is good";
bgcolor=iup.GetGlobal("DLGBGCOLOR"); readonly="YES"; visiblecolumns=30 };
gap=10
},
button
}
function button:action()
list.removeitem = "ALL"
for i = 1,40 do
list[tostring(i)] = "Hello"..tostring(i)
end
end
dlg = iup.dialog{vbox; title="Dialog",size="QUARTERxQUARTER"}
dlg:show()
if (iup.MainLoopLevel()==0) then
iup.MainLoop()
end
Thanks,
Milind
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users