I’m trying to get IupFlatTree to work (so I can get nodes assigned to the tree before the showxy part), but I can’t figure out why all I get is an empty white box when I use iup.flattree instead of iup.tree. I’d normally consult an example file, but couldn’t find anything in Lua that uses a flat tree. This is my normal iup.tree test script that works fine: require("iuplua") local tree = iup.tree{title = "TREE ROOT"} local testdlg = iup.dialog{iup.vbox{tree; margin = "25 x 25"}; title = "Test Window"} testdlg:showxy(iup.CENTER, iup.CENTER) tree.addbranch = "test" if (iup.MainLoopLevel()==0) then iup.MainLoop() end Changing it to “iup.flattree” just gives an empty box. Am I missing a “require”? |
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users