有一个tmenuitem控件,要把它onclick事件与我写的函数myfunciton(i : integer):integer;相关联,不能用对象观察器,只能用函数代码写出来,因为这个
tmenuitem控件是运行时才创建的