If you wish to implement the necessary actions with simultaneous check if they are enabled etc. then you do not need TBindNavigator
at all. The easiest way is the following:
The sample for an FMX Form:
- Add a
TActionList
to your form.
- Add a
New Standard Action
form LiveBindings
node of necessary TFMXBindNavigatePost
, TFMXBindNavigateCancel
etc. class.
- Select this action and set
Datasource
property.
- Assign the action to the necessary
TButton
or other control.
Steps 2-4 can be done in the other way as well.
- Selet the control (i.e.
TButton
), select property Action
and click the arrow on the right.
- Select
New standard action
then LiveBindings
. Select the necessary class TFMXBindNavigate*
. The action will be assigned to the TButton
.
- Select
TActionList
and choose the added action and set DataSource
property.
The action will be kept up-to-date by LiveBindings
. The necessary controls will become Enabled
-Disabled
and will act as buttons of TBindNavigator
.