diff options
-rw-r--r-- | dalos.lua | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -423,6 +423,12 @@ dalosp.canvas = { } dalosp.menu = { + action_load = function (self) + end, + + action_save = function(self) + end, + action_exit = function (self) return iup.CLOSE end, @@ -465,6 +471,10 @@ dalosp.menu = { end, create = function (canvas, tab) + local item_load = iup.item { title = "Load" } + item_load.action = dalosp.menu.action_load + local item_save = iup.item { title = "Save" } + item_save.action = dalosp.menu.action_save local item_exit = iup.item { title = "Exit" } item_exit.action = dalosp.menu.action_exit local item_about = iup.item { title = "About" } @@ -494,7 +504,7 @@ dalosp.menu = { table.insert(south_menu, item) end end - local menu_file = iup.submenu { iup.menu { item_exit }, title = "File" } + local menu_file = iup.submenu { iup.menu { item_load, item_save, iup.separator {}, item_exit }, title = "File" } local menu_add = iup.submenu { iup.menu(add_menu), title = "Add" } local menu_cross = iup.submenu { iup.menu { iup.submenu { iup.menu(north_menu), title = "North" }, |