TToolButton and DropDownMenu problem

Giganews Newsgroups
Subject:TToolButton and DropDownMenu problem
Posted by: Jens Mühlenhoff (j.muehlenho…@accurata.com)
Date:Thu, 27 Jul 2006

I have 5 TToolButtons that share a common TPopupMenu as their DropDownMenu.

How do I know in the OnPopup event of the TPopupMenu at which button
it was dropped down?

The TPopupMenu.DropDownComponent points to the TToolBar.

I could of course find out by the mouse position, but there
must be an easier way to do this, right?

--
Regards
Jens

Replies