Board index » delphi » Sender Object
Alexander Medwedew
![]() Delphi Developer |
Sat, 08 Aug 1998 03:00:00 GMT
Sender Object
What I need is to know the index of the Component Index of the Sender
Is there an equivalent to the following code for the sender object? I:=PopupMenu1.PopupComponent.ComponentIndex This is great for pop-up menus but it doesn't work with components. I have looked through the documentation and many other sources of This is all that I can find: if Sender=BitBtn then and for I:=0 to ComponentCount-1 do This is not very efficient when it involves lots of components, the Does anyone have an idea? -- |