My question is about Delphi Object Pascal corresponding run-time calls of TBindNavigator component buttons. I'm interesting of the following buttons:
How can I implement it in the code without TBindNavigator? Would you please clarify this issue? Thanks.
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:
TActionList
to your form. New Standard Action
form LiveBindings
node of necessary TFMXBindNavigatePost
, TFMXBindNavigateCancel
etc. class. Datasource
property. TButton
or other control. Steps 2-4 can be done in the other way as well.
TButton
), select property Action
and click the arrow on the right. New standard action
then LiveBindings
. Select the necessary class TFMXBindNavigate*
. The action will be assigned to the TButton
. 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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.