DisplayButtons (enable appropriate toolbar buttons:ToolbarUpdateClass) 

Top  Previous  Next


DisplayButtons, VIRTUAL

The DisplayButtons method enables and disables the appropriate toolbar buttons for the ToolbarUpdateClass object based on the values of the HelpButton, InsertButton, ChangeButton, DeleteButton, and SelectButton properties.


The TakeToolbar method calls the DisplayButtons method.



Toolbar.Init                                 !initialize Toolbar object

ToolBar.AddTarget( ToolbarForm, -1 )         !register an Update Form target

Toolbar.AddTarget( REL1::Toolbar, ?RelTree ) !register a RelTree target

ToolBar.SetTarget( -1 )                      !calls DisplayButtons via TakeToolbar

!program code


MyToolbarUpdateClass.DisplayButtons PROCEDURE !a derived class virtual


ENABLE(Toolbar:History)                      !enable toolbar ditto button

DISABLE(Toolbar:Locate)                      !disable locator button

PARENT.DisplayButtons                        !call base class DisplayButtons

!your custom code here

See Also:     HelpButton, InsertButton, ChangeButton, DeleteButton, SelectButton, TakeToolbar