Skip to content

TElectronPopupMenu

Description

This component allows to display a popup menu. Creating a TElectronPopupMenu and adding TElectronMenuItems to it is similar to VCL's TPopupMenu.

Designtime Runtime

Methods for TElectronPopupMenu

Property Description
Popup(X, Y: Integer) Show the popup menu at X and Y coordinates.

Updating a TElectronPopupMenu

Due to an Electron limitation, it's not possible to update a menu dynamically. This means the menu needs to be recreated and reassigned to the window after each modification. To make this procedure simple, just call the following line after modifying a menu:

ElectronPopupMenu1.EndUpdate;