MAXScript Tools and Interaction with 3ds Max > Creating MAXScript Tools > Scripted Utilities and Rollouts > Rollout User-Interface Controls > Rollout User-Interface Controls Types >

# popupMenu

User Interface Controls > Common Properties > Layout > Types > PopupMenu

| Creating User Interfaces - Quick Navigation

A popup menu is a custom right-click menu (RCMenu) that can be displayed anywhere on screen.

The syntax is:

    PopupMenu <RCMenu> [pos:<Point2>] [rollout:<Rollout>] [align:<key>]

This method will popup a menu anywhere on the screen.

<RCMenu> : Any RCMenu defined. It does not have to be registered.

[pos:<Point2>] : The point where to put the menu up, either relative to the Rollout or the screen. (Default:popup from current mouse position.)

[rollout:<Rollout>] : This will make the menu popup from a rollouts local coordinate system. Specifying undefined will popup the menu relative to the upper left corner of the screen. (Default:undefined)

[align:<key>] : Can be one of the following (default: #align_topleft ):

    #align_topleft #align_topcenter #align_topright #align_bottomleft #align_bottomcenter #align_bottomright #align_vcenterleft #align_vcentercenter #align_vcenterright

#### See Also

- Scripted Right-Click Menus

- Rollout User-Interface Items Common Properties

- Rollout User-Interface Items Common Layout Parameters

- Rollout User-Interface Control Types

- Similar Controls

- Listbox

- Dropdownlist

- Radiobuttons

- Combobox

- MultiListBox