# ShowMenu [v1.2]

作者: majkinetor 最近更新时间: 20071130

This is just very convinient way to build menus from the text variable(s). Perfect for any kind of application, from those having single menu to those having dozens of them. You can basicly store all your application menus in single file, and even let the user change that file for run-time menu customization. - majkinetor

ShowMenu( mDef, mnu="", sub="", sep="`n", r=0 )
ShowMenu_Data(mDef, item="")

关于函数的参数和返回值, 请参阅其源码.

#### 备注

This library comes without an external documentation, but everything is documented in the source file.
Joy2DWorld made a modification of this script:
o http://www.autohotkey.com/forum/viewtopic.php?p=163137#163137

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=23138

#### 许可

不存在

#### 示例

    ; #Include ShowMenu.ahk
    #NoEnv
    SendMode Input
    SetWorkingDir %A_ScriptDir%

    ShowMenu("[MyMenu]`nitem1`nitem2`n-`nitem3")
    return

    MyMenu:
       MsgBox %A_ThisMenuItem%
    return