Re: [Iup-users] Using the iup.scrollbox

2020-03-10 Thread Antonio Scuri
  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


Re: [Iup-users] Using the iup.scrollbox

2020-03-10 Thread Jane Taubman
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

Re: [Iup-users] Using the iup.scrollbox

2020-03-10 Thread Antonio Scuri
 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

2020-03-10 Thread Jane Taubman
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{
>>