mergDocShowOptionsMenu

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mergDocShowOptionsMenu <pFilePath>, [<pPopoverRect>]
Associationsmergdoc
Summary

Presents an action sheet on iPhone and popover on iPad showing the options for the document type

Introduced8.0
OSios
Platformsmobile
Parameters
NameTypeDescription
pFilePath

the full path of the document.

pPopoverRect

(optional with "" default) the rect that the iPad popover should show from, this will default to the target's rect so in most cases won't need to be set.

Example
mergDocShowOptionsMenu specialFolderPath("engine")&"/pdfs/help.pdf"
mergDocShowOptionsMenu specialFolderPath("engine")&"/pdfs/help.pdf",the rect of grc "popoverfromehere"
Values
NameTypeDescription
return

one of:

  • mergDoc: menu shown
  • mergDoc:Error: unable to show menu
Description

Important: There is a known issue with this command on iPad. Because of the order of delegate calls this command will not block after if the user chooses the Open In... menu item from the popover. This means the user may still be interacting with the open in menu when the command returns.

Tagsexternals