The tag property in the class TMenuItem is int type
you can set any info in this item,for your special index
for example you can set the menu file->open->tag = 1;
menu file->save->tag = 2;
in the follow program you can judge the definitely menu items
for the index tag
good luck