Hi All,
(You guys must be getting bored of me asking questions here!). In Delphi
(and other windows development) one can create action lists. These hold a
list of actions which encapsulate an event sink, an icon and text
representing the functionality of that sink as well as other useful
attributes such as whether the sink is enabled or not. These action lists
were great as you could set the various controls on your form to use
particular actions. Once a control was allocated an action that control's
text field, icon and event handler were set to those of the actionlist.
The big advantage with the above approach is that you could (for instance)
have a main menu entry, a speed menu entry and even a toolbar button all
point to the same action. This has the effect of assuring that the
functionality for a an action only need be written once and if an attribute
is changed on the action (such as the enabled property) all the other
controls using that action take on the new attribute change.
As far as I can tell C# has no actionlists in it (at least as far as my
standard edition is concerned). Is there a new .net replacement or
equivalent?
Thanks
RobP
'There are only 10 types of people in this world - Those that understand
binary and those that don't'