So after building from CVS it does work. The NORMALIZERGROUP attribute
is missing the "In Lua you can also use the element reference
directly" note. I think NORMALIZERGROUP should be given more emphasis:
I had pretty duplicated its functionality by collecting the controls
in a list before I realized I didn't need that. And it's a bit weird
to list NORMALIZERGROUP as an attribute of Normalizer, and not any the
controls, when it actually has to be set for the controls but not for
the Normalizer.

require'iuplua'
local table = require 'table'

local norm = iup.normalizer{}
local dialog = iup.dialog
{
   title="a dialog", size="QUARTERxQUARTER",
   iup.vbox
   {
      CGAP = "5x5", CMARGIN = "5x5",
      iup.hbox
      {
         iup.label{title = 'param 1', NORMALIZERGROUP = norm};
         iup.text{};
      };
      iup.hbox
      {
         iup.label{title = 'param 2 with long name', NORMALIZERGROUP = norm};
         iup.text{};
      };
   };
}
norm.normalize = "HORIZONTAL"
iup.Destroy(norm)

dialog:show()
iup.MainLoop()

dialog:destroy()
iup.Close()

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to