Class TDBToolbarButton97 (unit DB97Btn) |
TDBToolbarButton97
Constructors |
Functions |
Properties |
Events |
Variables |
Constructors |
Functions |
Properties |
Use DisableReasons to say on what case the button has to be disabled. It is set automatic if you set DataButtonType <> nbCustom. DisableReason | Disable if Dataset is... ---------------+------------------------- drBOF | EOF drEOF | BOF drReadonly | Readonly drNotEditing | Not in insert or edit-mode drEditing | In insert or edit-mode drEmpty | Both BOF and EOF
If you want to force the button to stay disabled, set the property Disabled to true. To set Enabled to false does only work if the button is enabled (sorry, but the message CM_ENABLEDCHANGED gets only called if Enabled changes). At designtime, you can use the property Enabled as usual.
Events |
Use BeforeAction instead of the Click-event if you want to be able to cancel the default-action by setting ActionIsDone to true. The Click-event is called before the DoAction-event.
Called after Enabled has changed:
Use OnGetQuestion if you want to ask the user before the action gets performed:
Variables |