PopupMenu

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
popup menu <mMenu> at <mAt>
Associationscom.livecode.widget
Summary

Displays a popup menu. Menu:An expression that evaluates to a string, which describes the menu items. Location:An expression that evaluates to a Point relative to the current widget. The topleft corner of the popup window will be placed here.

Example
private variable mFont as Font

public handler OnMouseDown()
	popup menu "Helvetica\nTimes New Roman\nArial" at the mouse position
	if the result is not nothing then
		put font (the result) at size 20 into mFont
		redraw all
	end if
end handler

public handler OnPaint()
	...
	set the font of this canvas to mFont
	...
end handler
Values
NameTypeDescription
The result

The selected menu item. If the menu is dismissed (by clicking outside the bounds of the menu) this value will be nothing.

Description

Use to popup a menu at the specified location.

Tagswidget