Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


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

SysTray Popup Menu

Question:
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.

Answer:
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.

 

 

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