Child pages
  • Popup

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rev: 1381948887907

...

HTML Table
id
classservoy sSummary
Colgroup Tag
Column
padding0px
width80px

Column

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Summary
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
CheckBox
Table Cell (td)
#addCheckBoxaddCheckBox()
Add a checkbox.
tbody
Table Row (tr)
Table Cell (td)
CheckBox
Table Cell (td)
#addCheckBoxaddCheckBox(index)
Add a checkbox at the selected index (starting at 0) or at the end.
Table Row (tr)
Table Cell (td)
CheckBox
Table Cell (td)
#addCheckBoxaddCheckBox(name)
Add a checkbox with given name.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
CheckBox
Table Cell (td)
#addCheckBoxaddCheckBox(name, feedback_item)
Add a checkbox at the selected index (starting at 0) or at the end.
Table Body (tbody)
tbody
Table Row (tr)
Table Cell (td)
CheckBox
Table Cell (td)
#addCheckBoxaddCheckBox(name, feedback_item, icon)
Add a checkbox at the selected index (starting at 0) or at the end.
tbody
Table Row (tr)
Table Cell (td)
CheckBox
Table Cell (td)
#addCheckBoxaddCheckBox(name, feedback_item, icon, mnemonic)
Add a checkbox at the selected index (starting at 0) or at the end.
tbody
Table Row (tr)
Table Cell (td)
CheckBox
Table Cell (td)
#addCheckBoxaddCheckBox(name, feedback_item, icon, mnemonic, enabled)
Add a checkbox at the selected index (starting at 0) or at the end.
Table Row (tr)
Table Cell (td)
CheckBox
Table Cell (td)
#addCheckBoxaddCheckBox(name, feedback_item, icon, mnemonic, enabled, align)
Add a checkbox at the selected index (starting at 0) or at the end.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Menu
Table Cell (td)
#addMenuaddMenu()
Add a submenu at the end.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Menu
Table Cell (td)
#addMenuaddMenu(index)
Add a submenu at the selected index (starting at 0).
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Menu
Table Cell (td)
#addMenuaddMenu(name)
Add a submenu with given name.
tbody
Table Row (tr)
Table Cell (td)
MenuItem
Table Cell (td)
#addMenuItemaddMenuItem()
Add a menu item.
Table Row (tr)
Table Cell (td)
MenuItem
Table Cell (td)
#addMenuItemaddMenuItem(index)
Add a menu item at the selected index (starting at 0) or at the end.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
MenuItem
Table Cell (td)
#addMenuItemaddMenuItem(name)
Add a menu item with given name.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
MenuItem
Table Cell (td)
#addMenuItemaddMenuItem(name, feedback_item)
Add a menu item at the selected index (starting at 0) or at the end.
Table Body (tbody)
tbody
Table Row (tr)
Table Cell (td)
MenuItem
Table Cell (td)
#addMenuItemaddMenuItem(name, feedback_item, icon)
Add a menu item at the selected index (starting at 0) or at the end.
Table Row (tr)
Table Cell (td)
MenuItem
Table Cell (td)
#addMenuItemaddMenuItem(name, feedback_item, icon, mnemonic)
Add a menu item at the selected index (starting at 0) or at the end.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
MenuItem
Table Cell (td)
#addMenuItemaddMenuItem(name, feedback_item, icon, mnemonic, enabled)
Add a menu item at the selected index (starting at 0) or at the end.
Table Body (tbody)
tbody
Table Row (tr)
Table Cell (td)
MenuItem
Table Cell (td)
#addMenuItemaddMenuItem(name, feedback_item, icon, mnemonic, enabled, align)
Add a menu item at the selected index (starting at 0) or at the end.
Table Row (tr)
Table Cell (td)
RadioButton
Table Cell (td)
#addRadioButtonaddRadioButton()
Add a radio button.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
RadioButton
Table Cell (td)
#addRadioButtonaddRadioButton(index)
Add a radiobutton at the selected index (starting at 0) or at the end.
tbody
Table Row (tr)
Table Cell (td)
RadioButton
Table Cell (td)
#addRadioButtonaddRadioButton(name)
Add a radio button with given name.
tbody
Table Row (tr)
Table Cell (td)
RadioButton
Table Cell (td)
#addRadioButtonaddRadioButton(name, feedback_item)
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Row (tr)
Table Cell (td)
RadioButton
Table Cell (td)
#addRadioButtonaddRadioButton(name, feedback_item, icon)
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
RadioButton
Table Cell (td)
#addRadioButtonaddRadioButton(name, feedback_item, icon, mnemonic)
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Body (tbody)
tbody
Table Row (tr)
Table Cell (td)
RadioButton
Table Cell (td)
#addRadioButtonaddRadioButton(name, feedback_item, icon, mnemonic, enabled)
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Row (tr)
Table Cell (td)
RadioButton
Table Cell (td)
#addRadioButtonaddRadioButton(name, feedback_item, icon, mnemonic, enabled, align)
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#addRadioGroupaddRadioGroup()
Add a radiogroup for radiobuttons.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#addSeparatoraddSeparator()
Add the separator at the selected index (starting at 0) or at the end (empty).
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#addSeparatoraddSeparator(index)
Add the separator at the selected index (starting at 0) or at the end (empty).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
CheckBox
Table Cell (td)
#getCheckBoxgetCheckBox(index)
Get the checkbox at the selected index (starting at 0).
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Object
Table Cell (td)
#getClientPropertygetClientProperty(key)
Gets the specified client property for the element based on a key.
tbody
Table Row (tr)
Table Cell (td)
MenuItem
Table Cell (td)
#getItemgetItem(index)
Get the item at the selected index (starting at 0).
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getItemCountgetItemCount()
Get the number of items in the menu.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Number
Table Cell (td)
#getItemIndexByTextgetItemIndexByText(text)
Retrieve the index of the item by text.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
Menu
Table Cell (td)
#getMenugetMenu(index)
Get the submenu at the selected index (starting at 0).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
RadioButton
Table Cell (td)
#getRadioButtongetRadioButton(index)
Get the radiobutton at the selected index (starting at 0).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#putClientPropertyputClientProperty(key, value)
Sets the value for the specified element client property key.
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#removeAllItemsremoveAllItems()
Remove all items from the menu.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#removeItemremoveItem(index)
Remove the item(s) at the selected index/indices.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#showshow()
Show the popup at the mouse coordinates (Smart client only).
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#showshow(component)
Show the popup above the specified element.
tbody
Table Body (tbody)
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#showshow(component, x, y)
Show the popup above the specified element, adding x an y values relative to the element.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
#showshow(x, y)
Show the popup at x an y coordinates.

HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Column
padding0px
width100%

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details
Table Body (tbody)
idaddCheckBox
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
CheckBox
Span
stylefont-weight: bold;
addCheckBox
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a checkbox.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
CheckBox

...

- checkbox
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the checkbox will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method

...

// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addCheckBox("checkbox", feedback_checkbox);
// add a checkbox with an icon
menu.addCheckBox("checkbox with icon", feedback_checkbox, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addCheckBox("checkbox with icon", feedback_checkbox, pic_bytes);
// add a checkbox with a mnemonic
menu.addCheckBox("checkbox with mnemonic", feedback_checkbox, "media:///yourimage.gif", "c");
// add a disabled checkbox
menu.addCheckBox("checkbox disabled", feedback_checkbox, "media:///yourimage.gif", "d", false);
// add a checkbox with text aligned to the right
menu.addCheckBox("align right", feedback_checkbox, null, null, true, MenuItem.ALIGN_RIGHT);

// add a checkbox at a given index (checkbox properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var chk = menu.addCheckBox(2);
chk.text = "checkbox at index";
chk.setMethod(feedback_checkbox);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddCheckBox-Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
CheckBox
Span
stylefont-weight: bold;
addCheckBox
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a checkbox at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} index

...

- the index at which to add the checkbox
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
CheckBox

...

- checkbox
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the checkbox will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method

...

// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addCheckBox("checkbox", feedback_checkbox);
// add a checkbox with an icon
menu.addCheckBox("checkbox with icon", feedback_checkbox, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addCheckBox("checkbox with icon", feedback_checkbox, pic_bytes);
// add a checkbox with a mnemonic
menu.addCheckBox("checkbox with mnemonic", feedback_checkbox, "media:///yourimage.gif", "c");
// add a disabled checkbox
menu.addCheckBox("checkbox disabled", feedback_checkbox, "media:///yourimage.gif", "d", false);
// add a checkbox with text aligned to the right
menu.addCheckBox("align right", feedback_checkbox, null, null, true, MenuItem.ALIGN_RIGHT);

// add a checkbox at a given index (checkbox properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var chk = menu.addCheckBox(2);
chk.text = "checkbox at index";
chk.setMethod(feedback_checkbox);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddCheckBox-String
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
CheckBox
Span
stylefont-weight: bold;
addCheckBox
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a checkbox with given name.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the checkbox text; this can be also html if enclosed between html tags
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
CheckBox

...

- checkbox
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the checkbox will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method

...


// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addCheckBox("checkbox", feedback_checkbox);
// add a checkbox with an icon
menu.addCheckBox("checkbox with icon", feedback_checkbox, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addCheckBox("checkbox with icon", feedback_checkbox, pic_bytes);
// add a checkbox with a mnemonic
menu.addCheckBox("checkbox with mnemonic", feedback_checkbox, "media:///yourimage.gif", "c");
// add a disabled checkbox
menu.addCheckBox("checkbox disabled", feedback_checkbox, "media:///yourimage.gif", "d", false);
// add a checkbox with text aligned to the right
menu.addCheckBox("align right", feedback_checkbox, null, null, true, MenuItem.ALIGN_RIGHT);

// add a checkbox at a given index (checkbox properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var chk = menu.addCheckBox(2);
chk.text = "checkbox at index";
chk.setMethod(feedback_checkbox);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddCheckBox-String_Function
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
CheckBox
Span
stylefont-weight: bold;
addCheckBox
Span
(name, feedback_item)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a checkbox at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the checkbox text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
CheckBox

...

- checkbox
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the checkbox will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method

...

// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addCheckBox("checkbox", feedback_checkbox);
// add a checkbox with an icon
menu.addCheckBox("checkbox with icon", feedback_checkbox, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addCheckBox("checkbox with icon", feedback_checkbox, pic_bytes);
// add a checkbox with a mnemonic
menu.addCheckBox("checkbox with mnemonic", feedback_checkbox, "media:///yourimage.gif", "c");
// add a disabled checkbox
menu.addCheckBox("checkbox disabled", feedback_checkbox, "media:///yourimage.gif", "d", false);
// add a checkbox with text aligned to the right
menu.addCheckBox("align right", feedback_checkbox, null, null, true, MenuItem.ALIGN_RIGHT);

// add a checkbox at a given index (checkbox properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var chk = menu.addCheckBox(2);
chk.text = "checkbox at index";
chk.setMethod(feedback_checkbox);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddCheckBox-String_Function_Object
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
CheckBox
Span
stylefont-weight: bold;
addCheckBox
Span
(name, feedback_item, icon)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a checkbox at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the checkbox text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the checkbox icon (can be an image URL or the image content byte array)
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
CheckBox

...

- checkbox
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the checkbox will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method

...

// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addCheckBox("checkbox", feedback_checkbox);
// add a checkbox with an icon
menu.addCheckBox("checkbox with icon", feedback_checkbox, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addCheckBox("checkbox with icon", feedback_checkbox, pic_bytes);
// add a checkbox with a mnemonic
menu.addCheckBox("checkbox with mnemonic", feedback_checkbox, "media:///yourimage.gif", "c");
// add a disabled checkbox
menu.addCheckBox("checkbox disabled", feedback_checkbox, "media:///yourimage.gif", "d", false);
// add a checkbox with text aligned to the right
menu.addCheckBox("align right", feedback_checkbox, null, null, true, MenuItem.ALIGN_RIGHT);

// add a checkbox at a given index (checkbox properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var chk = menu.addCheckBox(2);
chk.text = "checkbox at index";
chk.setMethod(feedback_checkbox);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddCheckBox-String_Function_Object_String
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
CheckBox
Span
stylefont-weight: bold;
addCheckBox
Span
(name, feedback_item, icon, mnemonic)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a checkbox at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the checkbox text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the checkbox icon (can be an image URL or the image content byte array)
{String} mnemonic

...

- the checkbox mnemonic
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
CheckBox

...

- checkbox
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the checkbox will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method

...

// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addCheckBox("checkbox", feedback_checkbox);
// add a checkbox with an icon
menu.addCheckBox("checkbox with icon", feedback_checkbox, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addCheckBox("checkbox with icon", feedback_checkbox, pic_bytes);
// add a checkbox with a mnemonic
menu.addCheckBox("checkbox with mnemonic", feedback_checkbox, "media:///yourimage.gif", "c");
// add a disabled checkbox
menu.addCheckBox("checkbox disabled", feedback_checkbox, "media:///yourimage.gif", "d", false);
// add a checkbox with text aligned to the right
menu.addCheckBox("align right", feedback_checkbox, null, null, true, MenuItem.ALIGN_RIGHT);

// add a checkbox at a given index (checkbox properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var chk = menu.addCheckBox(2);
chk.text = "checkbox at index";
chk.setMethod(feedback_checkbox);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddCheckBox-String_Function_Object_String_Boolean
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
CheckBox
Span
stylefont-weight: bold;
addCheckBox
Span
(name, feedback_item, icon, mnemonic, enabled)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a checkbox at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the checkbox text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the checkbox icon (can be an image URL or the image content byte array)
{String} mnemonic

...

- the checkbox mnemonic
{Boolean} enabled

...

- the enabled state of the checkbox
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
CheckBox

...

- checkbox
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the checkbox will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method

...

// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addCheckBox("checkbox", feedback_checkbox);
// add a checkbox with an icon
menu.addCheckBox("checkbox with icon", feedback_checkbox, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addCheckBox("checkbox with icon", feedback_checkbox, pic_bytes);
// add a checkbox with a mnemonic
menu.addCheckBox("checkbox with mnemonic", feedback_checkbox, "media:///yourimage.gif", "c");
// add a disabled checkbox
menu.addCheckBox("checkbox disabled", feedback_checkbox, "media:///yourimage.gif", "d", false);
// add a checkbox with text aligned to the right
menu.addCheckBox("align right", feedback_checkbox, null, null, true, MenuItem.ALIGN_RIGHT);

// add a checkbox at a given index (checkbox properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var chk = menu.addCheckBox(2);
chk.text = "checkbox at index";
chk.setMethod(feedback_checkbox);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddCheckBox-String_Function_Object_String_Boolean_Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
CheckBox
Span
stylefont-weight: bold;
addCheckBox
Span
(name, feedback_item, icon, mnemonic, enabled, align)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a checkbox at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the checkbox text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the checkbox icon (can be an image URL or the image content byte array)
{String} mnemonic

...

- the checkbox mnemonic
{Boolean} enabled

...

- the enabled state of the checkbox
{Number} align

...

- the alignment type
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
CheckBox

...

- checkbox
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the checkbox will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method

...

// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addCheckBox("checkbox", feedback_checkbox);
// add a checkbox with an icon
menu.addCheckBox("checkbox with icon", feedback_checkbox, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addCheckBox("checkbox with icon", feedback_checkbox, pic_bytes);
// add a checkbox with a mnemonic
menu.addCheckBox("checkbox with mnemonic", feedback_checkbox, "media:///yourimage.gif", "c");
// add a disabled checkbox
menu.addCheckBox("checkbox disabled", feedback_checkbox, "media:///yourimage.gif", "d", false);
// add a checkbox with text aligned to the right
menu.addCheckBox("align right", feedback_checkbox, null, null, true, MenuItem.ALIGN_RIGHT);

// add a checkbox at a given index (checkbox properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var chk = menu.addCheckBox(2);
chk.text = "checkbox at index";
chk.setMethod(feedback_checkbox);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenu
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Menu
Span
stylefont-weight: bold;
addMenu
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a submenu at the end.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Menu

...

- the submenu
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add a first submenu
var submenu1 = menu.addMenu("submenu 1");
submenu1.addMenuItem("sub item 1 - 1", feedback_item);
// add a submenu as child of the first submenu
var submenu1_2 = submenu1.addMenu("submenu 1 - 2");
submenu1_2.addMenuItem("sub item 1 - 2 - 1", feedback_item);
// add another submenu as a child of the first submenu
var submenu1_3 = submenu1.addMenu("submenu 1 - 3");
submenu1_3.addMenuItem("sub item 1 - 3 - 1", feedback_item);
// add a submenu to the second submenu of the first submenu
var submenu1_3_2 = submenu1_2.addMenu("submenu 1 - 2 - 2");
submenu1_3_2.addMenuItem("sub item 1 - 2 - 2 - 1", feedback_item);
// add a submenu directly to the menu, at the first position
var submenu0 = menu.addMenu(0);
submenu0.text = "submenu 0";
submenu0.addMenuItem("sub item 0 - 1", feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenu-Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Menu
Span
stylefont-weight: bold;
addMenu
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a submenu at the selected index (starting at 0).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} index

...

- the index at which to add the submenu
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Menu

...

- the submenu
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add a first submenu
var submenu1 = menu.addMenu("submenu 1");
submenu1.addMenuItem("sub item 1 - 1", feedback_item);
// add a submenu as child of the first submenu
var submenu1_2 = submenu1.addMenu("submenu 1 - 2");
submenu1_2.addMenuItem("sub item 1 - 2 - 1", feedback_item);
// add another submenu as a child of the first submenu
var submenu1_3 = submenu1.addMenu("submenu 1 - 3");
submenu1_3.addMenuItem("sub item 1 - 3 - 1", feedback_item);
// add a submenu to the second submenu of the first submenu
var submenu1_3_2 = submenu1_2.addMenu("submenu 1 - 2 - 2");
submenu1_3_2.addMenuItem("sub item 1 - 2 - 2 - 1", feedback_item);
// add a submenu directly to the menu, at the first position
var submenu0 = menu.addMenu(0);
submenu0.text = "submenu 0";
submenu0.addMenuItem("sub item 0 - 1", feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenu-String
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Menu
Span
stylefont-weight: bold;
addMenu
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a submenu with given name.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the text of the submenu; this can be also html if enclosed between html tags
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Menu

...

- the submenu
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add a first submenu
var submenu1 = menu.addMenu("submenu 1");
submenu1.addMenuItem("sub item 1 - 1", feedback_item);
// add a submenu as child of the first submenu
var submenu1_2 = submenu1.addMenu("submenu 1 - 2");
submenu1_2.addMenuItem("sub item 1 - 2 - 1", feedback_item);
// add another submenu as a child of the first submenu
var submenu1_3 = submenu1.addMenu("submenu 1 - 3");
submenu1_3.addMenuItem("sub item 1 - 3 - 1", feedback_item);
// add a submenu to the second submenu of the first submenu
var submenu1_3_2 = submenu1_2.addMenu("submenu 1 - 2 - 2");
submenu1_3_2.addMenuItem("sub item 1 - 2 - 2 - 1", feedback_item);
// add a submenu directly to the menu, at the first position
var submenu0 = menu.addMenu(0);
submenu0.text = "submenu 0";
submenu0.addMenuItem("sub item 0 - 1", feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenuItem
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
MenuItem
Span
stylefont-weight: bold;
addMenuItem
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a menu item.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
MenuItem

...

- menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addMenuItem("item", feedback_item);
// add an item with an icon
menu.addMenuItem("item with icon", feedback_item, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addMenuItem("item with icon", feedback_item, pic_bytes);
// add an item with a mnemonic
menu.addMenuItem("item with mnemonic", feedback_item, "media:///yourimage.gif", "i");
// add a disabled item
menu.addMenuItem("disabled item", feedback_item, "media:///yourimage.gif", "d", false);
// add an item with text aligned to the right
menu.addMenuItem("align right", feedback_item, null, null, true, SM_ALIGNMENT.RIGHT);

// add an item at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var item = menu.addMenuItem(2);
item.text = "item at index";
item.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenuItem-Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
MenuItem
Span
stylefont-weight: bold;
addMenuItem
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a menu item at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} index

...

- the index at which to add the menu item
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
MenuItem

...

- menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addMenuItem("item", feedback_item);
// add an item with an icon
menu.addMenuItem("item with icon", feedback_item, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addMenuItem("item with icon", feedback_item, pic_bytes);
// add an item with a mnemonic
menu.addMenuItem("item with mnemonic", feedback_item, "media:///yourimage.gif", "i");
// add a disabled item
menu.addMenuItem("disabled item", feedback_item, "media:///yourimage.gif", "d", false);
// add an item with text aligned to the right
menu.addMenuItem("align right", feedback_item, null, null, true, SM_ALIGNMENT.RIGHT);

// add an item at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var item = menu.addMenuItem(2);
item.text = "item at index";
item.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenuItem-String
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
MenuItem
Span
stylefont-weight: bold;
addMenuItem
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a menu item with given name.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the menu item text; this can be also html if enclosed between html tags
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
MenuItem

...

- menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addMenuItem("item", feedback_item);
// add an item with an icon
menu.addMenuItem("item with icon", feedback_item, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addMenuItem("item with icon", feedback_item, pic_bytes);
// add an item with a mnemonic
menu.addMenuItem("item with mnemonic", feedback_item, "media:///yourimage.gif", "i");
// add a disabled item
menu.addMenuItem("disabled item", feedback_item, "media:///yourimage.gif", "d", false);
// add an item with text aligned to the right
menu.addMenuItem("align right", feedback_item, null, null, true, SM_ALIGNMENT.RIGHT);

// add an item at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var item = menu.addMenuItem(2);
item.text = "item at index";
item.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenuItem-String_Function
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
MenuItem
Span
stylefont-weight: bold;
addMenuItem
Span
(name, feedback_item)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a menu item at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the menu item text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
MenuItem

...

- menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addMenuItem("item", feedback_item);
// add an item with an icon
menu.addMenuItem("item with icon", feedback_item, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addMenuItem("item with icon", feedback_item, pic_bytes);
// add an item with a mnemonic
menu.addMenuItem("item with mnemonic", feedback_item, "media:///yourimage.gif", "i");
// add a disabled item
menu.addMenuItem("disabled item", feedback_item, "media:///yourimage.gif", "d", false);
// add an item with text aligned to the right
menu.addMenuItem("align right", feedback_item, null, null, true, SM_ALIGNMENT.RIGHT);

// add an item at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var item = menu.addMenuItem(2);
item.text = "item at index";
item.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenuItem-String_Function_Object
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
MenuItem
Span
stylefont-weight: bold;
addMenuItem
Span
(name, feedback_item, icon)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a menu item at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the menu item text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the menu item icon (can be an image URL or the image content byte array)
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
MenuItem

...

- menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addMenuItem("item", feedback_item);
// add an item with an icon
menu.addMenuItem("item with icon", feedback_item, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addMenuItem("item with icon", feedback_item, pic_bytes);
// add an item with a mnemonic
menu.addMenuItem("item with mnemonic", feedback_item, "media:///yourimage.gif", "i");
// add a disabled item
menu.addMenuItem("disabled item", feedback_item, "media:///yourimage.gif", "d", false);
// add an item with text aligned to the right
menu.addMenuItem("align right", feedback_item, null, null, true, SM_ALIGNMENT.RIGHT);

// add an item at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var item = menu.addMenuItem(2);
item.text = "item at index";
item.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenuItem-String_Function_Object_String
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
MenuItem
Span
stylefont-weight: bold;
addMenuItem
Span
(name, feedback_item, icon, mnemonic)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a menu item at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the menu item text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the menu item icon (can be an image URL or the image content byte array)
{String} mnemonic

...

- the menu item mnemonic
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
MenuItem

...

- menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addMenuItem("item", feedback_item);
// add an item with an icon
menu.addMenuItem("item with icon", feedback_item, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addMenuItem("item with icon", feedback_item, pic_bytes);
// add an item with a mnemonic
menu.addMenuItem("item with mnemonic", feedback_item, "media:///yourimage.gif", "i");
// add a disabled item
menu.addMenuItem("disabled item", feedback_item, "media:///yourimage.gif", "d", false);
// add an item with text aligned to the right
menu.addMenuItem("align right", feedback_item, null, null, true, SM_ALIGNMENT.RIGHT);

// add an item at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var item = menu.addMenuItem(2);
item.text = "item at index";
item.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenuItem-String_Function_Object_String_Boolean
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
MenuItem
Span
stylefont-weight: bold;
addMenuItem
Span
(name, feedback_item, icon, mnemonic, enabled)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a menu item at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the menu item text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the menu item icon (can be an image URL or the image content byte array)
{String} mnemonic

...

- the menu item mnemonic
{Boolean} enabled

...

- the enabled state of the menu item
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
MenuItem

...

- menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addMenuItem("item", feedback_item);
// add an item with an icon
menu.addMenuItem("item with icon", feedback_item, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addMenuItem("item with icon", feedback_item, pic_bytes);
// add an item with a mnemonic
menu.addMenuItem("item with mnemonic", feedback_item, "media:///yourimage.gif", "i");
// add a disabled item
menu.addMenuItem("disabled item", feedback_item, "media:///yourimage.gif", "d", false);
// add an item with text aligned to the right
menu.addMenuItem("align right", feedback_item, null, null, true, SM_ALIGNMENT.RIGHT);

// add an item at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var item = menu.addMenuItem(2);
item.text = "item at index";
item.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddMenuItem-String_Function_Object_String_Boolean_Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
MenuItem
Span
stylefont-weight: bold;
addMenuItem
Span
(name, feedback_item, icon, mnemonic, enabled, align)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a menu item at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the menu item text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the menu item icon (can be an image URL or the image content byte array)
{String} mnemonic

...

- the menu item mnemonic
{Boolean} enabled

...

- the enabled state of the menu item
{Number} align

...

- the alignment type
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
MenuItem

...

- menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// when you don't define an index the item will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addMenuItem("item", feedback_item);
// add an item with an icon
menu.addMenuItem("item with icon", feedback_item, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addMenuItem("item with icon", feedback_item, pic_bytes);
// add an item with a mnemonic
menu.addMenuItem("item with mnemonic", feedback_item, "media:///yourimage.gif", "i");
// add a disabled item
menu.addMenuItem("disabled item", feedback_item, "media:///yourimage.gif", "d", false);
// add an item with text aligned to the right
menu.addMenuItem("align right", feedback_item, null, null, true, SM_ALIGNMENT.RIGHT);

// add an item at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var item = menu.addMenuItem(2);
item.text = "item at index";
item.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddRadioButton
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
RadioButton
Span
stylefont-weight: bold;
addRadioButton
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a radio button.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
RadioButton

...

- a radio button menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

...


// when you don't define an index the radiobutton will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addRadioButton("radio", feedback_radiobutton);
// add a radiobutton with an icon
menu.addRadioButton("radio with icon", feedback_radiobutton, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addRadioButton("radio with icon", feedback_radiobutton, pic_bytes);

...


// add a new radiobutton group
// a group will 'bind' all added radiobuttons after the group together
// as a result checking one item will uncheck the other
// if no group is added, a group is created automatically when the first radiobutton is added to the menu
// so in this case we will have two groups, one with the radiobuttons added until now and one with the ones added from now on
menu.addRadioGroup();

...


// add a radiobutton with a mnemonic
menu.addRadioButton("radio with mnemonic", feedback_radiobutton, "media:///yourimage.gif", "i");
// add a disabled radiobutton
menu.addRadioButton("disabled radio", feedback_radiobutton, "media:///yourimage.gif", "d", false);
// add a radiobutton with text aligned to the right
menu.addRadioButton("align right", feedback_radiobutton, null, null, true, SM_ALIGNMENT.RIGHT);
// add a radiobutton at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var rd = menu.addRadioButton(2);
rd.text = "radio at index";
rd.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddRadioButton-Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
RadioButton
Span
stylefont-weight: bold;
addRadioButton
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} index

...

- the index at which to add the radio button
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
RadioButton

...

- a radio button menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

...


// when you don't define an index the radiobutton will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addRadioButton("radio", feedback_radiobutton);
// add a radiobutton with an icon
menu.addRadioButton("radio with icon", feedback_radiobutton, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addRadioButton("radio with icon", feedback_radiobutton, pic_bytes);

...


// add a new radiobutton group
// a group will 'bind' all added radiobuttons after the group together
// as a result checking one item will uncheck the other
// if no group is added, a group is created automatically when the first radiobutton is added to the menu
// so in this case we will have two groups, one with the radiobuttons added until now and one with the ones added from now on
menu.addRadioGroup();

...


// add a radiobutton with a mnemonic
menu.addRadioButton("radio with mnemonic", feedback_radiobutton, "media:///yourimage.gif", "i");
// add a disabled radiobutton
menu.addRadioButton("disabled radio", feedback_radiobutton, "media:///yourimage.gif", "d", false);
// add a radiobutton with text aligned to the right
menu.addRadioButton("align right", feedback_radiobutton, null, null, true, SM_ALIGNMENT.RIGHT);
// add a radiobutton at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var rd = menu.addRadioButton(2);
rd.text = "radio at index";
rd.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddRadioButton-String
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
RadioButton
Span
stylefont-weight: bold;
addRadioButton
Span
(name)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a radio button with given name.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the radio button text; this can be also html if enclosed between html tags
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
RadioButton

...

- a radio button menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

...


// when you don't define an index the radiobutton will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addRadioButton("radio", feedback_radiobutton);
// add a radiobutton with an icon
menu.addRadioButton("radio with icon", feedback_radiobutton, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addRadioButton("radio with icon", feedback_radiobutton, pic_bytes);

...


// add a new radiobutton group
// a group will 'bind' all added radiobuttons after the group together
// as a result checking one item will uncheck the other
// if no group is added, a group is created automatically when the first radiobutton is added to the menu
// so in this case we will have two groups, one with the radiobuttons added until now and one with the ones added from now on
menu.addRadioGroup();

...


// add a radiobutton with a mnemonic
menu.addRadioButton("radio with mnemonic", feedback_radiobutton, "media:///yourimage.gif", "i");
// add a disabled radiobutton
menu.addRadioButton("disabled radio", feedback_radiobutton, "media:///yourimage.gif", "d", false);
// add a radiobutton with text aligned to the right
menu.addRadioButton("align right", feedback_radiobutton, null, null, true, SM_ALIGNMENT.RIGHT);
// add a radiobutton at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var rd = menu.addRadioButton(2);
rd.text = "radio at index";
rd.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddRadioButton-String_Function
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
RadioButton
Span
stylefont-weight: bold;
addRadioButton
Span
(name, feedback_item)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the radio button text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
RadioButton

...

- a radio button menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

...


// when you don't define an index the radiobutton will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addRadioButton("radio", feedback_radiobutton);
// add a radiobutton with an icon
menu.addRadioButton("radio with icon", feedback_radiobutton, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addRadioButton("radio with icon", feedback_radiobutton, pic_bytes);

...


// add a new radiobutton group
// a group will 'bind' all added radiobuttons after the group together
// as a result checking one item will uncheck the other
// if no group is added, a group is created automatically when the first radiobutton is added to the menu
// so in this case we will have two groups, one with the radiobuttons added until now and one with the ones added from now on
menu.addRadioGroup();

...


// add a radiobutton with a mnemonic
menu.addRadioButton("radio with mnemonic", feedback_radiobutton, "media:///yourimage.gif", "i");
// add a disabled radiobutton
menu.addRadioButton("disabled radio", feedback_radiobutton, "media:///yourimage.gif", "d", false);
// add a radiobutton with text aligned to the right
menu.addRadioButton("align right", feedback_radiobutton, null, null, true, SM_ALIGNMENT.RIGHT);
// add a radiobutton at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var rd = menu.addRadioButton(2);
rd.text = "radio at index";
rd.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddRadioButton-String_Function_Object
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
RadioButton
Span
stylefont-weight: bold;
addRadioButton
Span
(name, feedback_item, icon)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the radio button text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the radio button icon (can be an image URL or the image content byte array)
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
RadioButton

...

- a radio button menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

...


// when you don't define an index the radiobutton will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addRadioButton("radio", feedback_radiobutton);
// add a radiobutton with an icon
menu.addRadioButton("radio with icon", feedback_radiobutton, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addRadioButton("radio with icon", feedback_radiobutton, pic_bytes);

...


// add a new radiobutton group
// a group will 'bind' all added radiobuttons after the group together
// as a result checking one item will uncheck the other
// if no group is added, a group is created automatically when the first radiobutton is added to the menu
// so in this case we will have two groups, one with the radiobuttons added until now and one with the ones added from now on
menu.addRadioGroup();

...


// add a radiobutton with a mnemonic
menu.addRadioButton("radio with mnemonic", feedback_radiobutton, "media:///yourimage.gif", "i");
// add a disabled radiobutton
menu.addRadioButton("disabled radio", feedback_radiobutton, "media:///yourimage.gif", "d", false);
// add a radiobutton with text aligned to the right
menu.addRadioButton("align right", feedback_radiobutton, null, null, true, SM_ALIGNMENT.RIGHT);
// add a radiobutton at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var rd = menu.addRadioButton(2);
rd.text = "radio at index";
rd.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddRadioButton-String_Function_Object_String
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
RadioButton
Span
stylefont-weight: bold;
addRadioButton
Span
(name, feedback_item, icon, mnemonic)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the radio button text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the radio button icon (can be an image URL or the image content byte array)
{String} mnemonic

...

- the radio button mnemonic
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
RadioButton

...

- a radio button menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

...


// when you don't define an index the radiobutton will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addRadioButton("radio", feedback_radiobutton);
// add a radiobutton with an icon
menu.addRadioButton("radio with icon", feedback_radiobutton, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addRadioButton("radio with icon", feedback_radiobutton, pic_bytes);

...


// add a new radiobutton group
// a group will 'bind' all added radiobuttons after the group together
// as a result checking one item will uncheck the other
// if no group is added, a group is created automatically when the first radiobutton is added to the menu
// so in this case we will have two groups, one with the radiobuttons added until now and one with the ones added from now on
menu.addRadioGroup();

...


// add a radiobutton with a mnemonic
menu.addRadioButton("radio with mnemonic", feedback_radiobutton, "media:///yourimage.gif", "i");
// add a disabled radiobutton
menu.addRadioButton("disabled radio", feedback_radiobutton, "media:///yourimage.gif", "d", false);
// add a radiobutton with text aligned to the right
menu.addRadioButton("align right", feedback_radiobutton, null, null, true, SM_ALIGNMENT.RIGHT);
// add a radiobutton at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var rd = menu.addRadioButton(2);
rd.text = "radio at index";
rd.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddRadioButton-String_Function_Object_String_Boolean
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
RadioButton
Span
stylefont-weight: bold;
addRadioButton
Span
(name, feedback_item, icon, mnemonic, enabled)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the radio button text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the radio button icon (can be an image URL or the image content byte array)
{String} mnemonic

...

- the radio button mnemonic
{Boolean} enabled

...

- the enabled state of radio button
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
RadioButton

...

- a radio button menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

...


// when you don't define an index the radiobutton will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addRadioButton("radio", feedback_radiobutton);
// add a radiobutton with an icon
menu.addRadioButton("radio with icon", feedback_radiobutton, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addRadioButton("radio with icon", feedback_radiobutton, pic_bytes);

...


// add a new radiobutton group
// a group will 'bind' all added radiobuttons after the group together
// as a result checking one item will uncheck the other
// if no group is added, a group is created automatically when the first radiobutton is added to the menu
// so in this case we will have two groups, one with the radiobuttons added until now and one with the ones added from now on
menu.addRadioGroup();

...


// add a radiobutton with a mnemonic
menu.addRadioButton("radio with mnemonic", feedback_radiobutton, "media:///yourimage.gif", "i");
// add a disabled radiobutton
menu.addRadioButton("disabled radio", feedback_radiobutton, "media:///yourimage.gif", "d", false);
// add a radiobutton with text aligned to the right
menu.addRadioButton("align right", feedback_radiobutton, null, null, true, SM_ALIGNMENT.RIGHT);
// add a radiobutton at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var rd = menu.addRadioButton(2);
rd.text = "radio at index";
rd.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddRadioButton-String_Function_Object_String_Boolean_Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
RadioButton
Span
stylefont-weight: bold;
addRadioButton
Span
(name, feedback_item, icon, mnemonic, enabled, align)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add a radiobutton at the selected index (starting at 0) or at the end.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} name

...

- the radio button text; this can be also html if enclosed between html tags
{Function} feedback_item

...

- the feedback function
{Object} icon

...

- the radio button icon (can be an image URL or the image content byte array)
{String} mnemonic

...

- the radio button mnemonic
{Boolean} enabled

...

- the enabled state of radio button
{Number} align

...

- the alignment type
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
RadioButton

...

- a radio button menu item
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

...


// when you don't define an index the radiobutton will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addRadioButton("radio", feedback_radiobutton);
// add a radiobutton with an icon
menu.addRadioButton("radio with icon", feedback_radiobutton, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addRadioButton("radio with icon", feedback_radiobutton, pic_bytes);

...


// add a new radiobutton group
// a group will 'bind' all added radiobuttons after the group together
// as a result checking one item will uncheck the other
// if no group is added, a group is created automatically when the first radiobutton is added to the menu
// so in this case we will have two groups, one with the radiobuttons added until now and one with the ones added from now on
menu.addRadioGroup();

...


// add a radiobutton with a mnemonic
menu.addRadioButton("radio with mnemonic", feedback_radiobutton, "media:///yourimage.gif", "i");
// add a disabled radiobutton
menu.addRadioButton("disabled radio", feedback_radiobutton, "media:///yourimage.gif", "d", false);
// add a radiobutton with text aligned to the right
menu.addRadioButton("align right", feedback_radiobutton, null, null, true, SM_ALIGNMENT.RIGHT);
// add a radiobutton at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var rd = menu.addRadioButton(2);
rd.text = "radio at index";
rd.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddRadioGroup
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
addRadioGroup
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent

Add a radiogroup for radiobuttons. A radiogroup groups together all radiobuttons that are added
after the group is added. From all radiobuttons that belong to the same radiogroup only one can be
checked at a time.

If no radiogroup is added, one is created automatically when the first radiobutton is added.

Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

...


// when you don't define an index the radiobutton will be added at the last position
// this is what you usually do to build a new menu
// minimum settings are the text and method
// the method can be a global or form method
// be sure to enter the method WITHOUT '()' at the end
menu.addRadioButton("radio", feedback_radiobutton);
// add a radiobutton with an icon
menu.addRadioButton("radio with icon", feedback_radiobutton, "media:///yourimage.gif");
//var pic_bytes = plugins.file.readFile("/path/to/image.jpg");
//menu.addRadioButton("radio with icon", feedback_radiobutton, pic_bytes);

...


// add a new radiobutton group
// a group will 'bind' all added radiobuttons after the group together
// as a result checking one item will uncheck the other
// if no group is added, a group is created automatically when the first radiobutton is added to the menu
// so in this case we will have two groups, one with the radiobuttons added until now and one with the ones added from now on
menu.addRadioGroup();

...


// add a radiobutton with a mnemonic
menu.addRadioButton("radio with mnemonic", feedback_radiobutton, "media:///yourimage.gif", "i");
// add a disabled radiobutton
menu.addRadioButton("disabled radio", feedback_radiobutton, "media:///yourimage.gif", "d", false);
// add a radiobutton with text aligned to the right
menu.addRadioButton("align right", feedback_radiobutton, null, null, true, SM_ALIGNMENT.RIGHT);
// add a radiobutton at a given index (item properties must be configured after creation)
// indexes start at 0 (zero) so index 2 is in fact position 3
var rd = menu.addRadioButton(2);
rd.text = "radio at index";
rd.setMethod(feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddSeparator
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
addSeparator
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add the separator at the selected index (starting at 0) or at the end (empty).
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add an item and a checkbox
menu.addMenuItem("item", feedback_item);
menu.addCheckBox("checkbox", feedback_checkbox);
// add a separator
menu.addSeparator();
// add a radiobutton. it will be separated from the rest of the control by the separator
menu.addRadioButton("radio", feedback_radiobutton);
// add another separator between the item and the checkbox

...


menu.addSeparator(1);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idaddSeparator-Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
addSeparator
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Add the separator at the selected index (starting at 0) or at the end (empty).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} index

...

- the index at which to add the separator
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add an item and a checkbox
menu.addMenuItem("item", feedback_item);
menu.addCheckBox("checkbox", feedback_checkbox);
// add a separator
menu.addSeparator();
// add a radiobutton. it will be separated from the rest of the control by the separator
menu.addRadioButton("radio", feedback_radiobutton);
// add another separator between the item and the checkbox

...

menu.addSeparator(1);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetCheckBox-Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
CheckBox
Span
stylefont-weight: bold;
getCheckBox
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the checkbox at the selected index (starting at 0).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} index
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
CheckBox
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add two radiobuttons
menu.addRadioButton("radio one", feedback_radiobutton);
menu.addRadioButton("radio two", feedback_radiobutton);
// add a menu item, with a separator before it
menu.addSeparator();
menu.addMenuItem("item", feedback_item);
// add a checkbox, with a separator before it
menu.addSeparator();
menu.addCheckBox("check", feedback_checkbox);
// add a submenu with an item under it
var submenu = menu.addMenu("submenu");
submenu.addMenuItem("subitem", feedback_item);

// depending on some state, update the entries in the menu
var some_state = true;
if (some_state) {
	// select the first radiobutton
	menu.getRadioButton(0).selected = true;
} else {
	// select the first radiobutton
	menu.getRadioButton(1).selected = true;
}
// enable/disable the menu item
// remember to include the separators also when counting the index
menu.getItem(3).enabled = !some_state;
// select/unselect the checkbox
// remember to include the separators also when counting the index
menu.getCheckBox(5).selected = some_state;
// change the text of the submenu and its item
application.output(menu.getItemCount());
if (some_state) {
	menu.getMenu(6).text = "some state";
	menu.getMenu(6).getItem(0).text = "some text";
}
else {
	menu.getMenu(6).text = "not some state";
	menu.getMenu(6).getItem(0).text = "other text";
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetClientProperty-Object
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Object
Span
stylefont-weight: bold;
getClientProperty
Span
(key)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Gets the specified client property for the element based on a key.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} key
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Object
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// NOTE: Depending on the operating system, a user interface property name may be available.
// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add an item to the menu
menu.addMenuItem("item", feedback_item);

// set the tooltip of the menu via client properties
// keep the original tooltip in a form or global variable
originalTooltip = menu.getClientProperty("ToolTipText");
menu.putClientProperty("ToolTipText", "changed tooltip");

// later restore the original tooltip from the variable
//var menubar = plugins.window.getMenuBar();
//var menu = menubar.getMenu(menubar.getMenuCount()-1);
//menu.putClientProperty("ToolTipText", originalTooltip);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetItem-Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
MenuItem
Span
stylefont-weight: bold;
getItem
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the item at the selected index (starting at 0).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} index
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
MenuItem
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add two radiobuttons
menu.addRadioButton("radio one", feedback_radiobutton);
menu.addRadioButton("radio two", feedback_radiobutton);
// add a menu item, with a separator before it
menu.addSeparator();
menu.addMenuItem("item", feedback_item);
// add a checkbox, with a separator before it
menu.addSeparator();
menu.addCheckBox("check", feedback_checkbox);
// add a submenu with an item under it
var submenu = menu.addMenu("submenu");
submenu.addMenuItem("subitem", feedback_item);

// depending on some state, update the entries in the menu
var some_state = true;
if (some_state) {
	// select the first radiobutton
	menu.getRadioButton(0).selected = true;
} else {
	// select the first radiobutton
	menu.getRadioButton(1).selected = true;
}
// enable/disable the menu item
// remember to include the separators also when counting the index
menu.getItem(3).enabled = !some_state;
// select/unselect the checkbox
// remember to include the separators also when counting the index
menu.getCheckBox(5).selected = some_state;
// change the text of the submenu and its item
application.output(menu.getItemCount());
if (some_state) {
	menu.getMenu(6).text = "some state";
	menu.getMenu(6).getItem(0).text = "some text";
}
else {
	menu.getMenu(6).text = "not some state";
	menu.getMenu(6).getItem(0).text = "other text";
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetItemCount
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
getItemCount
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the number of items in the menu.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// REMARK: indexes start at 0, disabled items, non visible items and seperators are counted also
// REMARK: this is especially important when getting items by the index
// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add two radiobuttons
menu.addRadioButton("radio one", feedback_radiobutton);
menu.addRadioButton("radio two", feedback_radiobutton);
// add a checkbox
menu.addCheckBox("check", feedback_checkbox);
// add a menu item
menu.addMenuItem("item", feedback_item);
// add another menu item
menu.addMenuItem("item 2", feedback_item);

// remove the last item
menu.removeItem(menu.getItemCount() - 1);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetItemIndexByText-String
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Number
Span
stylefont-weight: bold;
getItemIndexByText
Span
(text)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Retrieve the index of the item by text.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{String} text
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add two radiobuttons
menu.addRadioButton("radio one", feedback_radiobutton);
menu.addRadioButton("radio two", feedback_radiobutton);
// add a checkbox
menu.addCheckBox("check", feedback_checkbox);
// add a menu item
menu.addMenuItem("item", feedback_item);
// add another menu item
menu.addMenuItem("item 2", feedback_item);

// find the index of the checkbox
var idx = menu.getItemIndexByText("check");
// remove the checkbox by its index
menu.removeItem(idx);
// remove both radiobuttons by their indices
menu.removeItem([0, 1]);
// remove all remaining entries
menu.removeAllItems();
// add back an item
menu.addMenuItem("new item", feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetMenu-Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Menu
Span
stylefont-weight: bold;
getMenu
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the submenu at the selected index (starting at 0).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} index
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Menu
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add two radiobuttons
menu.addRadioButton("radio one", feedback_radiobutton);
menu.addRadioButton("radio two", feedback_radiobutton);
// add a menu item, with a separator before it
menu.addSeparator();
menu.addMenuItem("item", feedback_item);
// add a checkbox, with a separator before it
menu.addSeparator();
menu.addCheckBox("check", feedback_checkbox);
// add a submenu with an item under it
var submenu = menu.addMenu("submenu");
submenu.addMenuItem("subitem", feedback_item);

// depending on some state, update the entries in the menu
var some_state = true;
if (some_state) {
	// select the first radiobutton
	menu.getRadioButton(0).selected = true;
} else {
	// select the first radiobutton
	menu.getRadioButton(1).selected = true;
}
// enable/disable the menu item
// remember to include the separators also when counting the index
menu.getItem(3).enabled = !some_state;
// select/unselect the checkbox
// remember to include the separators also when counting the index
menu.getCheckBox(5).selected = some_state;
// change the text of the submenu and its item
application.output(menu.getItemCount());
if (some_state) {
	menu.getMenu(6).text = "some state";
	menu.getMenu(6).getItem(0).text = "some text";
}
else {
	menu.getMenu(6).text = "not some state";
	menu.getMenu(6).getItem(0).text = "other text";
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idgetRadioButton-Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
RadioButton
Span
stylefont-weight: bold;
getRadioButton
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Get the radiobutton at the selected index (starting at 0).
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} index
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
RadioButton
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add two radiobuttons
menu.addRadioButton("radio one", feedback_radiobutton);
menu.addRadioButton("radio two", feedback_radiobutton);
// add a menu item, with a separator before it
menu.addSeparator();
menu.addMenuItem("item", feedback_item);
// add a checkbox, with a separator before it
menu.addSeparator();
menu.addCheckBox("check", feedback_checkbox);
// add a submenu with an item under it
var submenu = menu.addMenu("submenu");
submenu.addMenuItem("subitem", feedback_item);

// depending on some state, update the entries in the menu
var some_state = true;
if (some_state) {
	// select the first radiobutton
	menu.getRadioButton(0).selected = true;
} else {
	// select the first radiobutton
	menu.getRadioButton(1).selected = true;
}
// enable/disable the menu item
// remember to include the separators also when counting the index
menu.getItem(3).enabled = !some_state;
// select/unselect the checkbox
// remember to include the separators also when counting the index
menu.getCheckBox(5).selected = some_state;
// change the text of the submenu and its item
application.output(menu.getItemCount());
if (some_state) {
	menu.getMenu(6).text = "some state";
	menu.getMenu(6).getItem(0).text = "some text";
}
else {
	menu.getMenu(6).text = "not some state";
	menu.getMenu(6).getItem(0).text = "other text";
}

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idputClientProperty-Object_Object
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
putClientProperty
Span
(key, value)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Sets the value for the specified element client property key.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} key
{Object} value
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// NOTE: Depending on the operating system, a user interface property name may be available.
// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add an item to the menu
menu.addMenuItem("item", feedback_item);

// set the tooltip of the menu via client properties
// keep the original tooltip in a form or global variable
originalTooltip = menu.getClientProperty("ToolTipText");
menu.putClientProperty("ToolTipText", "changed tooltip");

// later restore the original tooltip from the variable
//var menubar = plugins.window.getMenuBar();
//var menu = menubar.getMenu(menubar.getMenuCount()-1);
//menu.putClientProperty("ToolTipText", originalTooltip);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idremoveAllItems
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
removeAllItems
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Remove all items from the menu.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add two radiobuttons
menu.addRadioButton("radio one", feedback_radiobutton);
menu.addRadioButton("radio two", feedback_radiobutton);
// add a checkbox
menu.addCheckBox("check", feedback_checkbox);
// add a menu item
menu.addMenuItem("item", feedback_item);
// add another menu item
menu.addMenuItem("item 2", feedback_item);

// find the index of the checkbox
var idx = menu.getItemIndexByText("check");
// remove the checkbox by its index
menu.removeItem(idx);
// remove both radiobuttons by their indices
menu.removeItem([0, 1]);
// remove all remaining entries
menu.removeAllItems();
// add back an item
menu.addMenuItem("new item", feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idremoveItem-ObjectArray
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
removeItem
Span
(index)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Remove the item(s) at the selected index/indices.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object[]} index

...

- array of one or moe indexes corresponding to items to remove
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// add a new menu to the menubar
var menubar = plugins.window.getMenuBar();
var menu = menubar.addMenu();
menu.text = "New Menu";
// alternatively create a popup menu
//var menu = plugins.window.createPopupMenu();

// add two radiobuttons
menu.addRadioButton("radio one", feedback_radiobutton);
menu.addRadioButton("radio two", feedback_radiobutton);
// add a checkbox
menu.addCheckBox("check", feedback_checkbox);
// add a menu item
menu.addMenuItem("item", feedback_item);
// add another menu item
menu.addMenuItem("item 2", feedback_item);

// find the index of the checkbox
var idx = menu.getItemIndexByText("check");
// remove the checkbox by its index
menu.removeItem(idx);
// remove both radiobuttons by their indices
menu.removeItem([0, 1]);
// remove all remaining entries
menu.removeAllItems();
// add back an item
menu.addMenuItem("new item", feedback_item);

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshow
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
show
Span
()
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the popup at the mouse coordinates (Smart client only).
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// NOTE: usually this code is placed in a handler of an event (e.g. right click on some component)
// create a popup menu
var menu = plugins.window.createPopupMenu();
// add a menu item
menu.addMenuItem("item", feedback_item);
// add another menu item
menu.addMenuItem("item 2", feedback_item);

if (event.getSource())
{
	// display the popup over the component which is the source of the event
	menu.show(event.getSource());
	// display the popup over the components, at specified coordinates relative to the component
	//menu.show(event.getSource(), 10, 10);
	// display the popup at specified coordinates relative to the main window
	//menu.show(100, 100);
}

// in Smart client, you can also use show with no parameters, it will show at the mouse coordinates:
//menu.show();

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshow-RuntimeComponent
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
show
Span
(component)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the popup above the specified element.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{RuntimeComponent} component
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// NOTE: usually this code is placed in a handler of an event (e.g. right click on some component)
// create a popup menu
var menu = plugins.window.createPopupMenu();
// add a menu item
menu.addMenuItem("item", feedback_item);
// add another menu item
menu.addMenuItem("item 2", feedback_item);

if (event.getSource())
{
	// display the popup over the component which is the source of the event
	menu.show(event.getSource());
	// display the popup over the components, at specified coordinates relative to the component
	//menu.show(event.getSource(), 10, 10);
	// display the popup at specified coordinates relative to the main window
	//menu.show(100, 100);
}

// in Smart client, you can also use show with no parameters, it will show at the mouse coordinates:
//menu.show();

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshow-RuntimeComponent_Number_Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
show
Span
(component, x, y)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the popup above the specified element, adding x an y values relative to the element.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{RuntimeComponent} component
{Number} x
{Number} y
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// NOTE: usually this code is placed in a handler of an event (e.g. right click on some component)
// create a popup menu
var menu = plugins.window.createPopupMenu();
// add a menu item
menu.addMenuItem("item", feedback_item);
// add another menu item
menu.addMenuItem("item 2", feedback_item);

if (event.getSource())
{
	// display the popup over the component which is the source of the event
	menu.show(event.getSource());
	// display the popup over the components, at specified coordinates relative to the component
	//menu.show(event.getSource(), 10, 10);
	// display the popup at specified coordinates relative to the main window
	//menu.show(100, 100);
}

// in Smart client, you can also use show with no parameters, it will show at the mouse coordinates:
//menu.show();

...

Table Row (tr)
classlastDetailRow
Table Cell (td)

Table Body (tbody)
idshow-Number_Number
Table Row (tr)
idname
Table Cell (td)
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
void
Span
stylefont-weight: bold;
show
Span
(x, y)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Show the popup at x an y coordinates.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Number} x
{Number} y
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
void
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript

...

// NOTE: usually this code is placed in a handler of an event (e.g. right click on some component)
// create a popup menu
var menu = plugins.window.createPopupMenu();
// add a menu item
menu.addMenuItem("item", feedback_item);
// add another menu item
menu.addMenuItem("item 2", feedback_item);

if (event.getSource())
{
	// display the popup over the component which is the source of the event
	menu.show(event.getSource());
	// display the popup over the components, at specified coordinates relative to the component
	//menu.show(event.getSource(), 10, 10);
	// display the popup at specified coordinates relative to the main window
	//menu.show(100, 100);
}

// in Smart client, you can also use show with no parameters, it will show at the mouse coordinates:
//menu.show();

...

Table Row (tr)
classlastDetailRow
Table Cell (td)