On 2006-07-18, at 2:13 AM, DaveTT wrote:


I'm trying to figure out how to implement a popup similar to the ones used in the OS X Address Book application. They appear as normal text--no jelly
bean--with small up and down arrows to the right. Clicking the word or
arrows brings up a normal popup list. Below are a couple of screen caps:

http://www.nabble.com/user-files/32/Picture%2B29.png
http://www.nabble.com/user-files/33/Picture%2B30.png

I tried using a static text field that called a DoMouseDown method in a custom PopupMenu (MyPopupMenu) class when it received a mousedown event. The
DoMouseDown method in turn used RaiseEvent in an attempt to pass the
mousedown event to the Popup. To hide the popup on the window I set the control width to -1. This would fail to compile complaining that mousedown
wasn't a method or property of MyPopupMenu.

I realize I can probably write some type of custom control to handle this but I'm concerned it'll look kludgy (for instance it won't have the subtle popup drop shadow). Is anyone currently doing something this? Is it even
possible?

Thanks,
Dave


1 - Create an picture/image on an canvas with the up and down arrows
2 - Create/use a contextual menu instead of PopUp menu...

Sven E



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to