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 = "80",
            usersize = "140x0",
            title = "Nationality:",
            },
            iup.text{
            expand = "HORIZONTAL",
            size = "200",
            usersize = "350x0",
            },
          },
          iup.hbox{
            iup.label{
            size = "80",
            usersize = "140x0",
            title = "Infirmity:",
            },
            iup.text{
            expand = "HORIZONTAL",
            size = "200",
            usersize = "350x0",
            },
          },
          iup.hbox{
            iup.label{
            size = "80",
            usersize = "140x0",
            title = "Record:",
            },
            iup.button{
            expand = "HORIZONTAL",
            size = "200",
            usersize = "350x0",
            title = "Record - Select or Create ...",
            },
          },
        },
      canfocus = "NO",
      scrollbar = "VERTICAL",
      xmax = "0",
      dy = "334",
      ymax = "583",
      wheeldropfocus = "YES",
      },
      iup.vbox{
        iup.hbox{
          iup.button{
          expand = "HORIZONTAL",
          padding = "4x4",
          title = "OK",
          active = "0",
          },
          iup.button{
          expand = "HORIZONTAL",
          padding = "4x4",
          title = "Cancel",
          },
        },
        iup.scrollbox{
          iup.frame{
            iup.label{
            expand = "YES",
            title = "Relationship cannot be empty\\nSex selection
required\\nAge cannot be empty\\nMarriage Status selection
required\\nRecord must be selected\\n",
            alignment = ":ATOP",
            font = "Tahoma,  10",
            },
          },
        maxsize = "x100",
        canfocus = "NO",
        xmax = "515",
        dx = "515",
        dy = "100",
        ymax = "100",
        wheeldropfocus = "YES",
        },
      },
    margin = "10x2",
    expandchildren = "YES",
    gap = "5",
    minsize = "300",
    },
  title = "England and Wales 1911 Census Data Input",
  }
  return dialogDump
end

On Tue, 10 Mar 2020 at 12:42, Antonio Scuri <antonio.sc...@gmail.com> wrote:

>   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 <janetaub...@gmail.com>
> 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
>


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

Reply via email to