local iup = require("iuplua") local dlg = iup.dialog{ iup.tabs{ --NGAP = 8, iup.frame{ tabtitle = "no edit", TITLE = 'EDITBOX="NO"', iup.vbox{ NORMALIZESIZE = "HORIZONTAL", NGAP = 4, iup.button{ TITLE = "TOP", action = function(this) print(this.TITLE) end, }, iup.list{ DROPDOWN = "YES", --EDITBOX = "YES", --VISIBLE_ITEMS = 5, VISIBLECOLUMNS = 10, dropdown_cb = function(this, state) print("DROPDOWN_CB", state) end, }, iup.button{ TITLE = "BOTTOM", action = function(this) print(this.TITLE) end, }, }, }, iup.frame{ tabtitle = "edit", TITLE = 'EDITBOX="YES"', iup.vbox{ NORMALIZESIZE = "HORIZONTAL", NGAP = 4, iup.button{ TITLE = "TOP", action = function(this) print(this.TITLE) end, }, iup.list{ DROPDOWN = "YES", EDITBOX = "YES", --VISIBLE_ITEMS = 5, VISIBLECOLUMNS = 10, dropdown_cb = function(this, state) print("DROPDOWN_CB", state) end, }, iup.button{ TITLE = "BOTTOM", action = function(this) print(this.TITLE) end, }, }, }, }, } dlg:showxy(iup.CENTER, iup.CENTER) iup.MainLoop()