Hi,
You miss passing the label to the GetParam. This:
*lbl* = iup.label{size="200x5"}
iup.GetParam("Title", nil,
"Boolean: %s\n%h \n",
pboolean, *lbl*)
solves the problem.
Regarding what you want to do, you will have to use the callback to set
the visiblecolumns attribute:
function param_action(dialog, param_index)
if (param_index == iup.GETPARAM_MAP) then
local param = iup.GetParamParam(dialog, 0)
local ctrl = iup.GetParamHandle(param, "CONTROL")
ctrl.visiblecolumns = 30
end
return 1
end
It has the same effect of the label you created, but it does not
increases the vertical size of the dialog.
Best,
Scuri
Em qua., 4 de mar. de 2020 às 19:07, Jane Taubman <[email protected]>
escreveu:
> I have been trying to workout how to pass the handle into the GetParam
> dialog when building the string, but I can not work out what it wants, if
> I give it l it fails concatenation.
>
> l = iup.label{size="200x5"}
>
> pboolean = 1
> ret, pboolean =
> iup.GetParam("Title", nil,
> "Boolean: %s\n%h \n",
> pboolean)
> if (not ret) then
> return
> end
>
> All I was trying to do was make the prompt box wider as I need the %s
> items to be about 3 times as long as they default to.
>
> Any ideas please let me know
> --
> Jane.
>
> Jane Taubman | www.rjt.org.uk | www.taubman.org.uk | www.fhug.org.uk
> _______________________________________________
> Iup-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users