LM.GUI.PopupMenu(width, radioMode)
Version added: before 9.5
Creates a new LM_PopupMenu object
Arguments:
| Name | Type | Description | Default | Ver |
| width | int32 | The width of the popup menu in pixels | < 9.5 | |
| radioMode | bool | If true, then only one item can be selected from the popup menu. If false, then the commands in the menu are not selected with a check, but work like normal menu commands. | true | < 9.5 |
Return value:
LM_PopupMenu The newly-created popup menu
Creates a new LM_PopupMenu object that can then be added to a dialog or toolbar. The LM_PopupMenu is just a "button" that an LM_Menu object needs to be attached to. See the example below:

SZ_MenuTest.OPTION1 = MOHO.MSG_BASE
SZ_MenuTest.OPTION2 = MOHO.MSG_BASE+1
SZ_MenuTest.OPTION3 = MOHO.MSG_BASE+2
function SZ_MenuTest:DoLayout(moho, layout)
self.menu = LM.GUI.Menu("My Menu")
self.popup = LM.GUI.PopupMenu(120, false)
self.popup:SetMenu(self.menu)
layout:AddChild(self.popup)
self.menu:AddItem("Option 1", 0, self.OPTION1)
self.menu:AddItem("Option 2", 0, self.OPTION2)
self.menu:AddItem("Option 3", 0, self.OPTION3)
end
The LM_Menu of 3 options is attached to the LM_PopupMenu widget
Search results
Usage of 'PopupMenu' is found in the following scripts:
AE Key Tools (Original Edition) by A.Evseeva
View Code
Tweak for Curve Exposure (Original Edition) by A.Evseeva
View Code
Tweak for Select Shape (Original Edition) by A.Evseeva
View Code
Lua Console (Original Edition) by A.Evseeva
View Code
msDialog (Original Edition) by strider2000
View Code
AE Action tools (Original Edition) by A.Evseeva
View Code
Modified transform bone tool (Original Edition) by A.Evseeva
View Code
Bind points modification (Original Edition) by A.Evseeva
View Code