O
Oleg Subachev
What is C#'s analogue of Delphi's TAction ?
If there is no one, how to implement the same functionality >
Oleg Subachev
If there is no one, how to implement the same functionality >
Oleg Subachev
Oleg said:What is C#'s analogue of Delphi's TAction ?
If there is no one, how to implement the same functionality
Oleg said:TAction is a class that mainly has two events:
OnExecute - where some real job may be done
and
OnUpdate - where the instance may be enabled/disabled.
Then the TAction instance may be assigned to the special
property of different controls, such as menu item, button,
speed button etc. So that all these controls will perform
the same job on clicking. Also these controls will be
simultaneously enabled/disabled and may share common
Caption, Hint and other properties.
component editor. Basically, controls like buttons and menu items have an
Action property and a TAction provides a RAD way of specifying what happens
when button or menu item is clicked.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.