Board index » cppbuilder » Get items from a popupMenu

Get items from a popupMenu

I dynamically create a popupMenu. After it is created, how can I get the
captions of those items within a loop?

Thanks,
Rick

--
Rick Kramer
rkra...@csihq.com

 

Re:Get items from a popupMenu


Try:

for(int i=0; i< MyPopUpMenu->Items->Count; i++) {
     var = MyPopUpMenu->Items[i]->Caption;

Quote
}

Rick Kramer <rkra...@csihq.com> escribi en el mensaje de noticias
825qil$6...@forums.borland.com...
Quote
> I dynamically create a popupMenu. After it is created, how can I get the
> captions of those items within a loop?

> Thanks,
> Rick

> --
> Rick Kramer
> rkra...@csihq.com

Other Threads