How do I know which is the selected control when I press the copy button or select the copy menu item?

How do I bind controls properties with menus and toolbars? Can it be made at run-time?

Thanks!