ComponentOne True DataControl 8.0
Button Enabled State

By default, True DataControl manages the enabled state of each button according to the current circumstances. For example, the Update button is enabled if a record has been modified.

The programmer can modify this default behavior by calling the EnableButton method.

It has two arguments: a button ID (ButtonEnum) and the enabled state, which can be one of the following three constant values:

tdbButtonEnabled = 0

Unconditionally enables the button.

tdbButtonDisabled = 1

Unconditionally disables the button.

tdbButtonEnabledDefault = 2

Resets previously set enabled set, so the button’s enabled state is maintained by the True DataControl default rules.

See Identifying a button in code for more information.

 

 


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

Product Support Forum  |  Documentation Feedback