|
Technical answers from the trenches |
|
Displaying Popup Menus from Buttons
| ||||
Posted: 24 February 2004 |
||||
  |
Applies to: All versions |
|||
  |
Audience: Beginner |
|||
Question: I want to display a menu when a user clicks a button. How do I do this?Answer: There are a number of different ways to do this, but one of the easiest is to:
Use care to typecast Sender correctly; otherwise, you may receive unexpected exceptions. For example, casting Sender as a TSpeedButton when running it from a TButton generates an Invalid Typecast exception when you click the button. |
|||
|
||||||||
|
Copyright © 2000-2004, techtricks.com; All Rights Reserved. Acknowledgements, Disclaimers, Terms and Conditions. |
||||||||
|
Article last updated on 24 February 2004
|
||
|
|
||
|
[- End -]
|