Page History
Wiki Markup |
---|
{hidden} DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING. THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden} {sub-section:description|text=}{sub-section}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#text] {td}{tr}{tbody}{table}\\{table:class=servoy sSummery}{colgroup}{column:width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{td}[#doClick]\() Script the selection (emulate a mouse click) of the item.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#set]\(text, method, arguments, icon, key, mnemonic, enabled, visible) Define the item with a text and a global method.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setAccelerator]\(key) Set the accelerator key of the item.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setArguments]\(arguments) Set the arguments that can be read by the defined method.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setEnabled]\(enabled) Enable/disable the item.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setIcon]\(icon) Set the icon of the item.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setMnemonic]\(key) Set the mnemonic key of the item.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setVisible]\(visible) Set the item visible.{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81}{tr:id=name}{td}h6.text{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_des|text=|trigger=button}{sub-section}{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_ret|text=|trigger=button}{sub-section}{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_see|text=|trigger=button}{sub-section}{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_see|text=|trigger=button}{sub-section}{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=sam}{td}*Sample*\\{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_sam|text=|trigger=button}{sub-section}{sub-section:5845A766F96D50AC-456B5BE1-45A54FAE-911FA9E6-6B41581B03B60E82689F1E81_sam|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\{table:class=servoy sDetail}{colgroup}{column:width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83}{tr:id=name}{td}h6.doClick{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}doClick{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_des|text=|trigger=button}{sub-section}{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_des|trigger=none|class=sIndent}Script the selection (emulate a mouse click) of the item...{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_prs|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_ret|text=|trigger=button}{sub-section}{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_see|text=|trigger=button}{sub-section}{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_see|text=|trigger=button}{sub-section}{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_sam|text=|trigger=button}{sub-section}{sub-section:5CFC49A2E4BCBF55-FBCF9399-42C144A0-BAAFAD13-5BD373245E41153B1849DC83_sam|class=sIndent|trigger=none}{code:language=javascript} // Script the selection (emulate a mouse click) of the item... // Clicking a separator will throw an error! plugins.menubar.getMenu(2).getItem(0).doClick(); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E}{tr:id=name}{td}h6.set{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}set{span}{span:id=iets|style=float: left;}\(text, method, arguments, icon, key, mnemonic, enabled, visible){span}{td}{tr}{tr:id=des}{td}{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_des|text=|trigger=button}{sub-section}{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_des|trigger=none|class=sIndent}Define the item with a text and a global method. Arguments, icon, accelerator, mnemonic key, visibility and enabling are optional...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_prs|trigger=none}text method \[arguments\] \[icon\] \[key\] \[mnemonic\] \[enabled\] \[visible\] {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_ret|text=|trigger=button}{sub-section}{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_see|text=|trigger=button}{sub-section}{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_see|text=|trigger=button}{sub-section}{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_sam|text=|trigger=button}{sub-section}{sub-section:E4C43671833EB78B-A35DDFC4-4FCD4349-98C7A16E-2EF92C30705892ABF634919E_sam|class=sIndent|trigger=none}{code:language=javascript} // Define the item with a text and a global method. Arguments, icon, accelerator, mnemonic key, visibility and enabling are optional... // get the menu at the last index // indexes start at 0 (zero) so index 2 is in fact position 3 var menu = plugins.menubar.getMenu(plugins.menubar.getMenuCount() - 1); // 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 var item = menu.addItem(); // create the settings for the specified menu item // minimum settings are the text and method properties // the method can be a global or form method // be sure to enter the method WITHOUT '()' at the end item.set("item with feedback",globals.feedback_item); var item = menu.addItem(); // add an 'input' array. the array will be concatenated to the end of the arguments // array which can be read out in the selected method var input = [1,"is","the","added","input",false]; item.set("item with input",globals.feedback_item,input); var item = menu.addItem(); // add an icon to the item item.set("item with icon",globals.feedback_item,input,"media:///yourimage.gif"); var item = menu.addItem(); // add an accelerator key ('alt shift 2' in the below example) // REMARK: always test the accelerator key. sometimes they will not work because // these keys already have an 'action' assigned to them via the operating system. item.set("item with accelerator",globals.feedback_item,input,"media:///yourimage.gif","alt shift 2"); var item = menu.addItem(); // add a mnemonic key ('i' in our example) which is the underlined shortkey on windows // REMARK: setting the mnemonic key is platform dependent // the accelerator key will not work in this and the next example item.set("item with mnemonic",globals.feedback_item,input,"media:///yourimage.gif","pressed COMMA","i"); var item = menu.addItem(); // disable the menu item item.set("item disabled",globals.feedback_item,input,"media:///yourimage.gif","meta HOME","t",false); var item = menu.addItem(); // set the menu item to be visible // this accelerator key will work item.set("item visible",globals.feedback_item,input,"media:///yourimage.gif","shift meta PAGE_DOWN","e",true,true); var item = menu.addItem(); // now the item is enabled and NOT visible item.set("item invisible",globals.feedback_item,input,"media:///yourimage.gif","A","m",true,false); // add a separator at the last position or at a given index menu.addSeparator(); return; // 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 var checkbox = menu.addCheckBox(); // create the settings for the specified menu item // minimum settings are the text and method properties // the method can be a global or form method // be sure to enter the method WITHOUT '()' at the end checkbox.set("item 09",feedback_checkbox); // ,false,input,"media:///yourimage.gif"); var checkbox = menu.addCheckBox(); checkbox.set("item 10",feedback_checkbox,true,null,"media:///yourimage.gif"); // add a separator at the last position or at a given index menu.addSeparator(); // add a new Radiobutton Group // the Radiobutton Group 'binds' the added radiobuttons to each other menu.addRadioGroup(); var radiobutton = menu.addRadioButton(); radiobutton.set("item 12",feedback_radiobutton,false,input,"media:///yourimage.gif"); var radiobutton = menu.addRadioButton(); radiobutton.set("item 13",feedback_radiobutton,true,null,"media:///yourimage.gif"); // add a new Radiobutton Group menu.addRadioGroup(); var radiobutton = menu.addRadioButton(); radiobutton.set("item 14",feedback_radiobutton,false,null,null,"F6","i"); var radiobutton = menu.addRadioButton(); radiobutton.set("item 15",feedback_radiobutton,false,null,null,"meta F7","t"); // add a separator at the last position or at a given index menu.addSeparator(); // and add some submenu's var submenu1 = menu.addSubMenu(); submenu1.set("submenu 17"); submenu1.addItem().set("sub item 17-00",globals.sampleMenuExec); var submenu2 = submenu1.addSubMenu(); submenu2.set("submenu 01"); submenu2.addItem().set("sub item 01-00",globals.sampleMenuExec); var submenu3 = submenu1.addSubMenu(); submenu3.set("submenu 02"); // add a separator at the last position or at a given index menu.addSeparator(); // WIZARD // You can use the menubar wizard solution found in application_server/solutions/servoy_wizard_menubar.servoy to create your menu // The wizard will help you at least to learn how to use the plugin and will help you to find the correct // accelerator key string {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87}{tr:id=name}{td}h6.setAccelerator{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setAccelerator{span}{span:id=iets|style=float: left;}\(key){span}{td}{tr}{tr:id=des}{td}{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_des|text=|trigger=button}{sub-section}{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_des|trigger=none|class=sIndent}Set the accelerator key of the item...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_prs|trigger=none}key {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_ret|text=|trigger=button}{sub-section}{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_see|text=|trigger=button}{sub-section}{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_see|text=|trigger=button}{sub-section}{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_sam|text=|trigger=button}{sub-section}{sub-section:DF0CBF1004EC3616-9BD2088F-4ADB4A1F-91C69F5C-057A0E903729B50AA5EB0F87_sam|class=sIndent|trigger=none}{code:language=javascript} var menu = plugins.menubar.getMenu(2).getItem(0); // Set the text of the item... menu.setText("IT2Be"); // Set the arguments that can be read by the defined method... - array elements will be passed as arguments 5, 6 and so on to the callback method menu.setArguments(["a","b"]); // Set the icon of the item... menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item... menu.setAccelerator("meta 4"); // Set the mnemonic key of the item... menu.setMnemonic("e"); // Enable/disable the item... menu.setEnabled(false); // Set the item visible... menu.setVisible(true); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD}{tr:id=name}{td}h6.setArguments{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setArguments{span}{span:id=iets|style=float: left;}\(arguments){span}{td}{tr}{tr:id=des}{td}{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_des|text=|trigger=button}{sub-section}{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_des|trigger=none|class=sIndent}Set the arguments that can be read by the defined method...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_prs|trigger=none}arguments {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_ret|text=|trigger=button}{sub-section}{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_see|text=|trigger=button}{sub-section}{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_see|text=|trigger=button}{sub-section}{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_sam|text=|trigger=button}{sub-section}{sub-section:05DBDD3BAD0CDAB5-FE16C30E-4E80462D-8BF38613-AC8DA2C74107A5910BCAD9BD_sam|class=sIndent|trigger=none}{code:language=javascript} var menu = plugins.menubar.getMenu(2).getItem(0); // Set the text of the item... menu.setText("IT2Be"); // Set the arguments that can be read by the defined method... - array elements will be passed as arguments 5, 6 and so on to the callback method menu.setArguments(["a","b"]); // Set the icon of the item... menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item... menu.setAccelerator("meta 4"); // Set the mnemonic key of the item... menu.setMnemonic("e"); // Enable/disable the item... menu.setEnabled(false); // Set the item visible... menu.setVisible(true); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528}{tr:id=name}{td}h6.setEnabled{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setEnabled{span}{span:id=iets|style=float: left;}\(enabled){span}{td}{tr}{tr:id=des}{td}{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_des|text=|trigger=button}{sub-section}{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_des|trigger=none|class=sIndent}Enable/disable the item...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_prs|trigger=none}enabled {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_ret|text=|trigger=button}{sub-section}{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_see|text=|trigger=button}{sub-section}{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_see|text=|trigger=button}{sub-section}{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_sam|text=|trigger=button}{sub-section}{sub-section:3A0F6DBE320809C9-F21DB335-40804DAC-A9408AE9-67764BAEA1095B80A2AA4528_sam|class=sIndent|trigger=none}{code:language=javascript} var menu = plugins.menubar.getMenu(2).getItem(0); // Set the text of the item... menu.setText("IT2Be"); // Set the arguments that can be read by the defined method... - array elements will be passed as arguments 5, 6 and so on to the callback method menu.setArguments(["a","b"]); // Set the icon of the item... menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item... menu.setAccelerator("meta 4"); // Set the mnemonic key of the item... menu.setMnemonic("e"); // Enable/disable the item... menu.setEnabled(false); // Set the item visible... menu.setVisible(true); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15}{tr:id=name}{td}h6.setIcon{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setIcon{span}{span:id=iets|style=float: left;}\(icon){span}{td}{tr}{tr:id=des}{td}{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_des|text=|trigger=button}{sub-section}{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_des|trigger=none|class=sIndent}Set the icon of the item...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_prs|trigger=none}icon {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_ret|text=|trigger=button}{sub-section}{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_see|text=|trigger=button}{sub-section}{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_see|text=|trigger=button}{sub-section}{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_sam|text=|trigger=button}{sub-section}{sub-section:97D18E8F8F27B6F4-1E445A87-468C4327-B6DC8DA8-626B7F68A2038A8A4DC52C15_sam|class=sIndent|trigger=none}{code:language=javascript} var menu = plugins.menubar.getMenu(2).getItem(0); // Set the text of the item... menu.setText("IT2Be"); // Set the arguments that can be read by the defined method... - array elements will be passed as arguments 5, 6 and so on to the callback method menu.setArguments(["a","b"]); // Set the icon of the item... menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item... menu.setAccelerator("meta 4"); // Set the mnemonic key of the item... menu.setMnemonic("e"); // Enable/disable the item... menu.setEnabled(false); // Set the item visible... menu.setVisible(true); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB}{tr:id=name}{td}h6.setMnemonic{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setMnemonic{span}{span:id=iets|style=float: left;}\(key){span}{td}{tr}{tr:id=des}{td}{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_des|text=|trigger=button}{sub-section}{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_des|trigger=none|class=sIndent}Set the mnemonic key of the item...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_prs|trigger=none}key {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_ret|text=|trigger=button}{sub-section}{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_see|text=|trigger=button}{sub-section}{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_see|text=|trigger=button}{sub-section}{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_sam|text=|trigger=button}{sub-section}{sub-section:D13B1C52C40DB659-0196925F-4DD94CD4-8E1B9261-69186345764A6AFCE70A1BDB_sam|class=sIndent|trigger=none}{code:language=javascript} var menu = plugins.menubar.getMenu(2).getItem(0); // Set the text of the item... menu.setText("IT2Be"); // Set the arguments that can be read by the defined method... - array elements will be passed as arguments 5, 6 and so on to the callback method menu.setArguments(["a","b"]); // Set the icon of the item... menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item... menu.setAccelerator("meta 4"); // Set the mnemonic key of the item... menu.setMnemonic("e"); // Enable/disable the item... menu.setEnabled(false); // Set the item visible... menu.setVisible(true); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C}{tr:id=name}{td}h6.setVisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setVisible{span}{span:id=iets|style=float: left;}\(visible){span}{td}{tr}{tr:id=des}{td}{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_des|text=|trigger=button}{sub-section}{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_des|trigger=none|class=sIndent}Set the item visible...{sub-section}{td}{tr}{tr:id=prs}{td}*Parameters*\\{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_prs|trigger=none}visible {sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_ret|text=|trigger=button}{sub-section}{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_see|text=|trigger=button}{sub-section}{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_see|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_see|text=|trigger=button}{sub-section}{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_link|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_sam|text=|trigger=button}{sub-section}{sub-section:ED7A8B5B9F36B8C6-F35A586C-47D34E78-BA30A0DE-7712A4D49952B5F106D03C1C_sam|class=sIndent|trigger=none}{code:language=javascript} var menu = plugins.menubar.getMenu(2).getItem(0); // Set the text of the item... menu.setText("IT2Be"); // Set the arguments that can be read by the defined method... - array elements will be passed as arguments 5, 6 and so on to the callback method menu.setArguments(["a","b"]); // Set the icon of the item... menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item... menu.setAccelerator("meta 4"); // Set the mnemonic key of the item... menu.setMnemonic("e"); // Enable/disable the item... menu.setEnabled(false); // Set the item visible... menu.setVisible(true); {code}{sub-section}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table} |
Overview
Content Tools
Activity