If you give the TMenuItems meaningful (and unique!) names when you 
create them then you can use this in your event handler:

if TMenuItem(Sender).Name = 'blabla' then......

Jonas Raoni wrote:

>On 7/18/05, soonhuat ong <[EMAIL PROTECTED]> wrote:
>  
>
>>How am i going to identified which MenuItem that i click at then ?? Let's say 
>>in your example:
>>
>>MyPopUpItems[i].OnClick     := MiMenuItemClick;
>>    
>>
>
>On the "MiMenuItemClick" you'll receive a TMenuItem on the sender...
>Just cast it and get what you want :b
>
>TMenuItem( Sender ).blablabla
>
>
>
>  
>



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to