User Tools

Site Tools


displaybuttons_enable_appropriate_toolbar_buttons_toolbarlistboxclass_.htm
Navigation:  ABC Library Reference > ToolbarListBoxClass > ToolbarListboxClass Methods >====== DisplayButtons (enable appropriate toolbar buttons:ToolbarListboxClass) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

DisplayButtons, VIRTUAL

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, InsertButton, ChangeButton, DeleteButton, SelectButton, TakeToolbar, ToolbarTarget.DisplayButtons

displaybuttons_enable_appropriate_toolbar_buttons_toolbarlistboxclass_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1