简体   繁体   中英

Delphi Object Pascal corresponding run-time calls of TBindNavigator

My question is about Delphi Object Pascal corresponding run-time calls of TBindNavigator component buttons. I'm interesting of the following buttons:

  • "Post";
  • "Cancel";
  • "Refresh".

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:

  1. Add a TActionList to your form.
  2. Add a New Standard Action form LiveBindings node of necessary TFMXBindNavigatePost , TFMXBindNavigateCancel etc. class.
  3. Select this action and set Datasource property.
  4. Assign the action to the necessary TButton or other control.

Steps 2-4 can be done in the other way as well.

  1. Selet the control (ie TButton ), select property Action and click the arrow on the right.
  2. Select New standard action then LiveBindings . Select the necessary class TFMXBindNavigate* . The action will be assigned to the TButton .
  3. 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 .

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM