mergPopMenu

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
mergPopMenu(<pButtons>, [<pRect>])
Associationsmergpop
Summary

Presents a popup contextual menu like the Cut|Copy|Paste menu in a text view

Introduced8.0
OSios
Platformsmobile
Parameters
NameTypeDescription
pButtons

a comma delimited list of button labels.

pRect

(optional with "" default) a rect on screen which is used as the location the popover is presented from. This defaults to the rect of the target control.

Example
switch mergPopMenu("Duplicate,Delete")
  case "Duplicate"
    clone the target
    break
  case "Delete"
    delete the target
    break
end switch
Values
NameTypeDescription
return

one of:

  • One of the button labels (they should be unique).
  • mergPopMenu: cancel
Description

Presents a popup contextual menu like the Cut|Copy|Paste menu in a text view

Tagsexternals