AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de controles
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
OpenContextMenu (Function)
AjaxNo disponible
Advertencia
A partir de la versión 28, OpenPopupMenu se conserva por motivos de compatibilidad. Esta función ha sido reemplazada por OpenContextMenu.
Automatically opens a context menu for the current control, window or page.
Ejemplo
// -- Click code of BTN_Action button
OpenContextMenu(MenuDateChoice)
Sintaxis
OpenContextMenu([<Context menu name> [, <X> , <Y >]])
<Context menu name>: Optional character string
Name of the context menu that must be opened for the current control.
If this parameter is not specified, the default context menu associated with the control is opened.
Android This parameter is not available. Only the context menu of the current control can be opened.
<X>: Integer (optional)
X-coordinate of the opening position of the context menu. This X-coordinate is expressed in pixels, in relation to the upper-left corner of the window. If <X> and <Y> are not specified, the context menu is opened at mouse position.
AndroidiPhone/iPad This parameter is not available:
  • On the iPhone, the context menu opens according to the iPhone standard: the context menu comes from the bottom of the screen.
  • On iPad, the context menu opens according to the iPad standard: the context menu is displayed next to the field that triggered the menu opening.
  • In Android, the context menu opens in the middle of the screen.
<Y >: Integer (optional)
Y-coordinate of the opening position of the context menu. This Y-coordinate is specified in pixels, in relation to the upper-left corner of the window. If <X> and <Y> are not specified, the context menu is opened at mouse position.
AndroidiPhone/iPad This parameter is not available:
  • On the iPhone, the context menu opens according to the iPhone standard: the context menu comes from the bottom of the screen.
  • On iPad, the context menu opens according to the iPad standard: the context menu is displayed next to the field that triggered the menu opening.
  • In Android, the context menu opens in the middle of the screen.
Observaciones
  • This function must be executed the code of a control, window or page.
    This function should not be used in the code for resizing a window.
  • This function is a blocking function until the context menu is closed.
    iPhone/iPad This function is not a locking function in iOS. WEBDEV - Código Navegador This function is not locking.
  • WINDEV For an MDI child window, it may be interesting to open a context menu defined in the MDI parent window. In this case, <Name of Context menu> must have the following format:
    NameOfWindow.NameOfContextMenu
  • Android This function must be used in one of the processes of the control for which the context menu is to be displayed.
Clasificación Lógica de negocio / UI: Código UI
Componente: wd300obj.dll
Ver también
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local