Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Feb 1, 1999



Application Security Testing: An Integral Part of DevOps

SysTray Popup Menu

I've used your technique for getting the icon in the tray and for being notified when the user has clicked on it, but I'm having a problem getting a pop-up menu to show near the icon. Since the pop-up menu uses the current window, the menu is not visible. I've tried GetCursorPos(lppoint) and translated to PBU's. That didn't work, either. I want the menu to pop up at the current cursor location without regard for any window.

The best way is to use a response window and set the visible attribute to FALSE, then in the systray event add code like the following:

my_menu.m_tray.PopMenu(PointerX(), PointerY())
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date