| **Navigation:**  [[abc library reference.htm|ABC Library Reference]] > ToolbarListBoxClass > ToolbarListboxClass Methods >====== DisplayButtons (enable appropriate toolbar buttons:ToolbarListboxClass) {{c6h0009.jpg|C6H0009.jpg}} ====== | [[toolbarlistboxclass methods.htm|{{btn_prev_n.gif|Previous page}}]][[abc library reference.htm|{{btn_home_n.gif|Return to chapter overview}}]][[takeevent convert toolbar events toolbarlistboxclass .htm|{{btn_next_n.gif|Next page}}]] | | || **DisplayButtons, VIRTUAL** {{blk2blue.jpg|blk2blue.jpg}} The **DisplayButtons **method enables and disables the appropriate toolbar buttons for the ToolbarListboxClass object based on the values of the HelpButton, InsertButton, ChangeButton, DeleteButton, and SelectButton properties. **Implementation:** The TakeToolbar method calls the DisplayButtons method. The DisplayButtons method calls the PARENT.DisplayButtons method (ToolbarTarget.DisplayButtons) to handle buttons common to all ToolbarTargets. **Example:** ** CODE** ** Toolbar.Init                      !initialize Toolbar object** **  BRW1.AddToolbarTarget( Toolbar ) !register a BrowseBox target** **  ToolBar.SetTarget( ?Browse:1)    !calls DisplayButtons via TakeToolbar** **MyToolbarListboxClass.DisplayButtons PROCEDURE !a derived class virtual** ** CODE** ** DISABLE(Toolbar:History)         !disable toolbar ditto button** ** ENABLE(Toolbar:Locate)           !enable locator button** ** PARENT.DisplayButtons            !call base class DisplayButtons** ** !your custom code here** **See Also:**     [[helpbutton help control number .htm|HelpButton]], [[insertbutton insert control number .htm|InsertButton]], [[changebutton change control number .htm|ChangeButton]], [[deletebutton delete control number .htm|DeleteButton]], [[selectbutton select control number .htm|SelectButton]], [[taketoolbar assume contol of the toolbar .htm|TakeToolbar]], [[displaybuttons enable appropriate toolbar buttons toolbartarget .htm|ToolbarTarget.DisplayButtons]]