Class TDBSpeedButton (unit DBSBtn)

Inherits from

TCustomDBSpeedButton

TDBSpeedButton

Constructors



Functions

Properties

property ConfirmDelete :


property DataButtonType :


property DataSource :


property DisableReasons :

Use DisableReasons to say on what case the button has to be disabled.

property Language :


property MenuItem :


property Disabled :

If you want to force the button to stay disabled, set the property Disabled to true.

Events

event OnAfterAction :


event OnBeforeAction :

Use BeforeAction instead of the Click-event if you want to be able to cancel the default-action by setting ActionIsDone to true.

event OnEnabledChanged :

Called after Enabled has changed:

event OnGetQuestion :

Use OnGetQuestion if you want to ask the user before the action gets performed:

Variables


Constructors


Functions


Properties


property ConfirmDelete :


property DataButtonType :


property DataSource :


property DisableReasons :

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


property Language :


property MenuItem :


property Disabled :

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


event OnAfterAction :


event OnBeforeAction :

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.


event OnEnabledChanged :

Called after Enabled has changed:


event OnGetQuestion :

Use OnGetQuestion if you want to ask the user before the action gets performed:


Variables