What about iup.dialog{ ... shrink = "YES", ...} ?
And no BORDER attribute in hbox or vbox.
Enclose content to frame.
8/29/2014 11:23, Milind Gupta пишет:
Hi,
I have 2 iuptree elements in an iuptabs control which is in a
iupsplit element. Somehow this combination makes the split bar not go all
the way to hide the tabs control. The tabs control has a lower limit beyond
which the split cannot move. How can I make the split move all the way? I
have attached a test program to show the problem
Thanks,
Milind
----------------------------------------
-- Dynamic Documentation System main GUI file
-- @script Dynamic Documentation system
-- @author Milind Gupya
-- @date 8/27/2014
--
require("iuplua")
require("cdlua")
require("iuplua")
require("iupluacd")
require("iupluagl")
require("iupluaglcontrols")
require("iuplua_mglplot")
mainDlg = iup.dialog{
title = "Test Program",
--minsize = "0x0",
shrink = "YES",
iup.vbox{
-- Splitter to vertically split the area into 2
iup.split{
orientation = "HORIZONTAL",
minmax = "1000:1000",
value = "1000",
--minsize = "0x0",
-- Bottom section splitter
-- splitter for the top section
iup.split{
orientation = "VERTICAL",
minmax = "0:1000",
value = "200",
--minsize = "0x0",
-- The tabs containing the content and structure tree
iup.tabs{
--minsize = "0x0",
-- Tree to display the document contents
iup.tree{
expand = "YES",
tabtitle = "Contents",
--minsize = "0x0"
},
-- Tree to display the document structure
iup.tree{
expand = "YES",
tabtitle = "Structure",
--minsize = "0x0"
},
},
-- Main document area
iup.scrollbox{
iup.vbox{
iup.glcanvasbox{
BGCOLOR = "200 200 200",
expand = "YES",
size = "300x100",
iup.cbox{
border = "YES",
expand = "YES",
},
},
},
},
},
-- splitter to horizontally split the lower area into 2 if visible
iup.split{
orientation = "VERTICAL",
--minsize = "0x0",
},
},
---[[
-- Layout box to hold the status bar labels
iup.frame{
border="YES",
iup.hbox{
-- 3 segmented status bar
-- Status Bar label left
iup.label{
title = "Test Program",
expand = "HORIZONTAL",
},
-- Status Bar label middle
iup.label{
expand = "HORIZONTAL"
},
-- Status Bar label left
iup.label{
expand = "HORIZONTAL"
},
},
},
--]]
},
}
mainDlg:show()
-- Main IUP events loop
if (iup.MainLoopLevel()==0) then
iup.MainLoop()
end
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users