summaryrefslogtreecommitdiff
path: root/plugins/MirLua/docs
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-30 09:55:11 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-30 09:55:11 +0000
commitd2843de0f8ceebeeb87806bb9670d69f1218619b (patch)
tree336e2fec8297d9a407c501d1e92ec11697203ac9 /plugins/MirLua/docs
parent9c8b58a6166b681c587f59358b04efcd569b11db (diff)
MirLua: added examples to m_genmenu
git-svn-id: http://svn.miranda-ng.org/main/trunk@14450 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/docs')
-rw-r--r--plugins/MirLua/docs/examples/menus.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/MirLua/docs/examples/menus.lua b/plugins/MirLua/docs/examples/menus.lua
index 67bea59a40..8480c2cbaf 100644
--- a/plugins/MirLua/docs/examples/menus.lua
+++ b/plugins/MirLua/docs/examples/menus.lua
@@ -55,3 +55,13 @@ local hChild = genmenu.AddMainMenuItem(menuItem)
--- Modify menu item
local CMIM_NAME = tonumber("80000000", 16)
genmenu.ModifyMenuItem(hChild, "Main menu child", hIcon, CMIM_NAME)
+
+
+local hDisabledMenuItem = genmenu.AddMainMenuItem({ Name = "Disabled main menu item" })
+genmenu.EnableMenuItem(hDisabledMenuItem, false)
+
+local hHiddenMenuItem = genmenu.AddMainMenuItem({ Name = "Hidden main menu item" })
+genmenu.ShowMenuItem(hHiddenMenuItem, false)
+
+local hCheckedMenuItem = genmenu.AddMainMenuItem({ Name = "Checked main menu item" })
+genmenu.CheckMenuItem(hCheckedMenuItem, true)