DisableTBbutton

Syntax:

DisableTBbutton( #ButtonID, Flag )

Parameters:

#ButtonID

=

your ButtonNumber (ID)

Flag

=

One of the following states:


0 = Enable

1 = Disable


Description:

Disables or Enables a ToolbarButton.

In disabled state the Button can not be used / clicked.


Example:

  AddTBbutton(500,1,#TBpro_BUTTON)
  AddTBbutton(501,2,#TBpro_BUTTON)
  AddTBseparator()
  AddTBbutton(502,3,#TBpro_BUTTON)
  AddTBbutton(503,4,#TBpro_BUTTON)
  AddTBseparator()

  DisableTBbutton(502, 1)

Remarks:

If you have specified a special Image for disabled state

(with SetTBimage() and #TBpro_DISABLED), the corresponding

image is shown.

Otherwise the image is grayed.



Supported OS:   Windows