Solved

ONPOPUP

Posted on 1997-03-14
1
201 Views
Last Modified: 2010-04-03
I am using Delphi 1.0 and have found that a second Right mouse click in a different location on the screen will move the POPUP menu that is currently being displayed, but it will not call the ONPOPUP event again !!!  Is this a bug ?
Is there a work around ? My problem is that I want to know the mouse coordinates where the right click was performed.
0
Comment
Question by:Mike Strauser
1 Comment
 
LVL 3

Accepted Solution

by:
mheacock earned 50 total points
ID: 1334761
I don't know if it is a bug...I would doubt it...probably just how OnPopup functions at the Win95 level.  As a workaround, you could just capture MouseDown events for the right button...immediately disable the Autopopup property set to False) and then read the mouse coordinates and then show your popup menu via the Popup method.

There is a small example in the Delphi help file under Popup method.  I think this will work for you.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Mydac connection data base issue 3 167
Intraweb download file link ? 1 156
JAudiorecorder record freezing the app 29 76
Firemonkey BASS_Init into a thread 17 33
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question