I'd like to know whether there's a way to create methods at runtime. Say, for example that I have a popup-menu, but the contents of the popup-menu changes during runtime, can I then write code for the onClick-events (which is pretty much the same for all the items in the popupmenu) for the items in the popup menu that isn't created yet? If so, how?
Many thanks for any help.
0 · ·