| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > PopupClass > PopupClass Methods >====== SetToolbox (set menu item toolbox status) ====== | [[settext set menu item text .htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[settranslator set run time translator popupclass .htm|{{btn_next_n.gif|Next page}}]] | | || **SetToolbox( **//name, showflag //**)** {{blk2blue.jpg|blk2blue.jpg}} | **SetToolbox** | Sets the menu item toolbox appearance status. | | //name// | A string constant, variable, EQUATE, or expression containing the menu item name. The AddItem, AddItemMimic, or AddMenu methods set the item name//.// | | //showflag// | A Boolean constant, variable, EQUATE, or expression containing the status to which to set the item. A //showflag //value of one (1) indicates that the item will appear on the toolbox; zero (0) indicates that the item will not appear on the toolbox. | The **SetToolbox **method sets whether or not the menu item will appear on a popup toolbox. The Toolbox method displays the popup menu in a toolbox format. **Implementation:** The SetToolbox method is used with the BrowseClass SetAlerts method when the BrowseClass ToolControl property is set to TRUE. **Example:** **    IF SELF.ToolControl** **      SELF.Popup.AddItem('-')** **      SELF.Popup.****SetToolbox****(SELF.Popup.AddItemMimic(DefaultToolName,|** **                            SELF.ToolControl,'!'&DefaultToolName),0)** **    END** **See Also:     **[[setalerts alert keystrokes for list and locator controls .htm|BrowseClass.SetAlerts]] , [[toolbox start the popup toolbox menu .htm|Toolbox]]