DisplayButtons (enable appropriate toolbar buttons:ToolbarListboxClass)

Top  Previous  Next


DisplayButtons, VIRTUAL

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.


The TakeToolbar method calls the DisplayButtons method. The DisplayButtons method calls the PARENT.DisplayButtons method (ToolbarTarget.DisplayButtons) to handle buttons common to all ToolbarTargets.



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


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