Re: [Iup-users] Using the iup.scrollbox
Hi, That's what I was going to suggest you. Dynamic layout has these complex details when several containers are involved. It took me some time to notice what was going on. The IupScrollbox container has a slightly different behavior when expanding, to be able to be larger than its children. But just to replace the second IupScrollbox by a IupVbox for instance, it is not enough. Because the label is expanding in all directions with EXPAND=YES. So the 2 containers that have expandable children will fill the top Vbox equally. By changing the EXPAND attribute of the label to HORIZONTAL, this is changed and you have the behavior closer to what was expected. Best, Scuri Em qua., 11 de mar. de 2020 às 13:28, Jane Taubman escreveu: > Thanks, in the end I just removed the second Scroll box as when that is > not included the window behaves as I wanted leaving the bottom of the > screen a fixed size and the top growing and shrinking with the window size. > > > > On Wed, 11 Mar 2020 at 14:11, Pete Lomax via Iup-users < > iup-users@lists.sourceforge.net> wrote: > >> Not an expert, but I clocked this bit in the middle with some suspicion: >> scrollbar = "VERTICAL", >> xmax = "0", >> dy = "334", >> ymax = "583", >> I wondered about expand = "VERTICAL" and/or getting rid of that ymax >> setting. Have not tried either here, my apologies if neither helps. >> > -- > Jane. > > Jane Taubman | www.rjt.org.uk | www.taubman.org.uk | www.fhug.org.uk > ___ > Iup-users mailing list > Iup-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/iup-users > ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users
Re: [Iup-users] Using the iup.scrollbox
Thanks, in the end I just removed the second Scroll box as when that is not included the window behaves as I wanted leaving the bottom of the screen a fixed size and the top growing and shrinking with the window size. On Wed, 11 Mar 2020 at 14:11, Pete Lomax via Iup-users < iup-users@lists.sourceforge.net> wrote: > Not an expert, but I clocked this bit in the middle with some suspicion: > scrollbar = "VERTICAL", > xmax = "0", > dy = "334", > ymax = "583", > I wondered about expand = "VERTICAL" and/or getting rid of that ymax > setting. Have not tried either here, my apologies if neither helps. > -- Jane. Jane Taubman | www.rjt.org.uk | www.taubman.org.uk | www.fhug.org.uk ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users
Re: [Iup-users] Using the iup.scrollbox
Not an expert, but I clocked this bit in the middle with some suspicion: scrollbar = "VERTICAL", xmax = "0", dy = "334", ymax = "583", I wondered about expand = "VERTICAL" and/or getting rid of that ymax setting. Have not tried either here, my apologies if neither helps. On Tuesday, 10 March 2020, 20:50:07 GMT, Jane Taubman wrote: Thanks for your help What I was hoping to get to was to dock the message and buttons to the base using the space for the fieldlist, but I can't seem to work out how. On Tue, 10 Mar 2020, 19:42 Antonio Scuri, wrote: ok Got it. I attached the full example so we can move on from there. Here is the result: I'm still trying to figure out the initial size, but when I resize the dialog, its children are resized accordingly. What's not expected for you? Best,Scuri Em ter., 10 de mar. de 2020 às 15:32, Jane Taubman escreveu: I used iup.Popup(iup.LayoutDialog(dlg)) to dump out the dialog source at the end of the build As follows -- Generated by IupLayoutDialog export to Lua. function create_dialog_dialogDump() iup.dialog{ iup.vbox{ iup.hbox{ iup.label{ title = "Enter name and other information as shown on Census", }, margin = "4x2", }, iup.scrollbox{ iup.vbox{ iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Name:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", value = "Henry Mullins", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Relationship:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Sex:", }, iup.list{ expand = "HORIZONTAL", size = "200", usersize = "350x0", ["1"] = "Male", ["2"] = "Female", ["3"] = "Unknown", dropdown = "YES", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Age:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", mask = "/d+[dwmy]", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Marriage Status:", }, iup.list{ expand = "HORIZONTAL", size = "200", usersize = "350x0", ["1"] = "Single", ["2"] = "Married", ["3"] = "Widower", ["4"] = "Widow", dropdown = "YES", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Years Married:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Children Born:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", mask = "/d*", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Children Living:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", mask = "/d*", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Children Died:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", mask = "/d*", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Occupation:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Industry:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{
Re: [Iup-users] Using the iup.scrollbox
Thanks for your help What I was hoping to get to was to dock the message and buttons to the base using the space for the fieldlist, but I can't seem to work out how. On Tue, 10 Mar 2020, 19:42 Antonio Scuri, wrote: > ok Got it. I attached the full example so we can move on from there. > > Here is the result: > > [image: image.png] > > I'm still trying to figure out the initial size, but when I resize the > dialog, its children are resized accordingly. > > What's not expected for you? > > Best, > Scuri > > > Em ter., 10 de mar. de 2020 às 15:32, Jane Taubman > escreveu: > >> I used iup.Popup(iup.LayoutDialog(dlg)) to dump out the dialog source >> at the end of the build >> >> As follows >> >> -- Generated by IupLayoutDialog export to Lua. >> >> function create_dialog_dialogDump() >> iup.dialog{ >> iup.vbox{ >> iup.hbox{ >> iup.label{ >> title = "Enter name and other information as shown on Census", >> }, >> margin = "4x2", >> }, >> iup.scrollbox{ >> iup.vbox{ >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Name:", >> }, >> iup.text{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> value = "Henry Mullins", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Relationship:", >> }, >> iup.text{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Sex:", >> }, >> iup.list{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> ["1"] = "Male", >> ["2"] = "Female", >> ["3"] = "Unknown", >> dropdown = "YES", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Age:", >> }, >> iup.text{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> mask = "/d+[dwmy]", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Marriage Status:", >> }, >> iup.list{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> ["1"] = "Single", >> ["2"] = "Married", >> ["3"] = "Widower", >> ["4"] = "Widow", >> dropdown = "YES", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Years Married:", >> }, >> iup.text{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Children Born:", >> }, >> iup.text{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> mask = "/d*", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Children Living:", >> }, >> iup.text{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> mask = "/d*", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Children Died:", >> }, >> iup.text{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> mask = "/d*", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Occupation:", >> }, >> iup.text{ >> expand = "HORIZONTAL", >> size = "200", >> usersize = "350x0", >> }, >> }, >> iup.hbox{ >> iup.label{ >> size = "80", >> usersize = "140x0", >> title = "Industry:", >> }, >> iup.text{ >>
Re: [Iup-users] Using the iup.scrollbox
ok Got it. I attached the full example so we can move on from there. Here is the result: [image: image.png] I'm still trying to figure out the initial size, but when I resize the dialog, its children are resized accordingly. What's not expected for you? Best, Scuri Em ter., 10 de mar. de 2020 às 15:32, Jane Taubman escreveu: > I used iup.Popup(iup.LayoutDialog(dlg)) to dump out the dialog source > at the end of the build > > As follows > > -- Generated by IupLayoutDialog export to Lua. > > function create_dialog_dialogDump() > iup.dialog{ > iup.vbox{ > iup.hbox{ > iup.label{ > title = "Enter name and other information as shown on Census", > }, > margin = "4x2", > }, > iup.scrollbox{ > iup.vbox{ > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Name:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > value = "Henry Mullins", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Relationship:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Sex:", > }, > iup.list{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > ["1"] = "Male", > ["2"] = "Female", > ["3"] = "Unknown", > dropdown = "YES", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Age:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > mask = "/d+[dwmy]", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Marriage Status:", > }, > iup.list{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > ["1"] = "Single", > ["2"] = "Married", > ["3"] = "Widower", > ["4"] = "Widow", > dropdown = "YES", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Years Married:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Children Born:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > mask = "/d*", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Children Living:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > mask = "/d*", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Children Died:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > mask = "/d*", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Occupation:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Industry:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize = "350x0", > }, > }, > iup.hbox{ > iup.label{ > size = "80", > usersize = "140x0", > title = "Employment Status:", > }, > iup.text{ > expand = "HORIZONTAL", > size = "200", > usersize
Re: [Iup-users] Using the iup.scrollbox
I used iup.Popup(iup.LayoutDialog(dlg)) to dump out the dialog source at the end of the build As follows -- Generated by IupLayoutDialog export to Lua. function create_dialog_dialogDump() iup.dialog{ iup.vbox{ iup.hbox{ iup.label{ title = "Enter name and other information as shown on Census", }, margin = "4x2", }, iup.scrollbox{ iup.vbox{ iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Name:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", value = "Henry Mullins", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Relationship:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Sex:", }, iup.list{ expand = "HORIZONTAL", size = "200", usersize = "350x0", ["1"] = "Male", ["2"] = "Female", ["3"] = "Unknown", dropdown = "YES", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Age:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", mask = "/d+[dwmy]", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Marriage Status:", }, iup.list{ expand = "HORIZONTAL", size = "200", usersize = "350x0", ["1"] = "Single", ["2"] = "Married", ["3"] = "Widower", ["4"] = "Widow", dropdown = "YES", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Years Married:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Children Born:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", mask = "/d*", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Children Living:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", mask = "/d*", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Children Died:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", mask = "/d*", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Occupation:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Industry:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Employment Status:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "At Home:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size = "80", usersize = "140x0", title = "Where Born:", }, iup.text{ expand = "HORIZONTAL", size = "200", usersize = "350x0", }, }, iup.hbox{ iup.label{ size =
Re: [Iup-users] Using the iup.scrollbox
That depends on what's inside the fieldlist. If you provide a complete sample code I can test it here. Best, Scuri Em seg., 9 de mar. de 2020 às 16:02, Jane Taubman escreveu: > I have the following > > dlg = > iup.dialog{title=sTitle,iup.vbox{iup.hbox{iup.label{title=sTopMessage},margin='4x2'}, > iup.frame{iup.scrollbox{fieldlist,scrollbar="VERTICAL",expand="YES"}},lButtons,iup.scrollbox{iup.frame{warning,margin='10x2'},maxsize="x100"}, > margin='10x2'}, gap="5",minsize="300"} > > The field list is an vbox container. When first displayed it is fully > displayed, but when I slightly change the dialog size the scroll box > around the field list shrink. > > Can anyone spot what I have done wrong? > > > > -- > Jane. > > Jane Taubman | www.rjt.org.uk | www.taubman.org.uk | www.fhug.org.uk > ___ > Iup-users mailing list > Iup-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/iup-users > ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users
[Iup-users] Using the iup.scrollbox
I have the following dlg = iup.dialog{title=sTitle,iup.vbox{iup.hbox{iup.label{title=sTopMessage},margin='4x2'}, iup.frame{iup.scrollbox{fieldlist,scrollbar="VERTICAL",expand="YES"}},lButtons,iup.scrollbox{iup.frame{warning,margin='10x2'},maxsize="x100"}, margin='10x2'}, gap="5",minsize="300"} The field list is an vbox container. When first displayed it is fully displayed, but when I slightly change the dialog size the scroll box around the field list shrink. Can anyone spot what I have done wrong? -- Jane. Jane Taubman | www.rjt.org.uk | www.taubman.org.uk | www.fhug.org.uk ___ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users