ComponentOne True DataControl 8.0
ButtonEnabled Method

 

ButtonEnabled Method

Returns the enabled state of a control button.

Syntax

TData.ButtonEnabled Index

Remarks

Method applies to TData control and TDataLite control.

Arguments: Index is one of the TDButtonEnum constants, identifying a button of the True DataControl, see EnableButton method.

Return Value: Returns boolean value: True if the button is enabled, False if it is disabled.

This method can be used if the developer wants to implement actions of TData buttons in custom command buttons or other controls. This method, together with the ButtonStateChanged event, allows the developer to enable/disable command buttons and other controls under exactly the same circumstances when standard TData buttons are enabled/disabled.

See Also

TData Control

EnableButton Method

ButtonStateChanged Event

True DataControl Buttons

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback