Board index » delphi » How to get the caption of ContainedAction

How to get the caption of ContainedAction


2003-12-10 04:00:59 PM
delphi150
Hi,
use actionlist.actions[i] can retrun ContainedAction,but i need caption
of it,how to get it?
I know TAction have caption Property.
Thanks
Yaska
 
 

Re:How to get the caption of ContainedAction

Yes but TContainedAction is n't a TAction, you can get the caption
through AcctionManager's TLinkedActionLists
 

Re:How to get the caption of ContainedAction

"Yaska" <XXXX@XXXXX.COM>wrote in
Quote
Hi,
use actionlist.actions[i] can retrun ContainedAction,but i need
caption
of it,how to get it?
I know TAction have caption Property.

Thanks

Yaska
Just cast TContainedAction to TAction, you can access it.
George
 

Re:How to get the caption of ContainedAction

"George Wei" <XXXX@XXXXX.COM>дʼ
Quote
"Yaska" <XXXX@XXXXX.COM>wrote in
news:XXXX@XXXXX.COM:

>Hi,
>use actionlist.actions[i] can retrun ContainedAction,but i need
>caption
>of it,how to get it?
>I know TAction have caption Property.
>
>Thanks
>
>Yaska

Just cast TContainedAction to TAction, you can access it.

George
Thanks a lot