"contextMenuPolicy"
Defines how the respective widgets shows the context menu.
Synopsis
shape.contextMenuPolicy(string menu);
Parameters
Parameter | Description |
---|---|
shape | Name of the object |
menu |
|
Description
Defines how the respective widgets shows the context menu.
Example
This example disables the context menu for the TEXT_EDIT1 widget.
main(bool enter)
{
TEXT_EDIT1.contextMenuPolicy("NoContextMenu");
}
Assignment
TextEdit, Thumb Wheel, Progress Bar, Slider, ...