Solved

ONPOPUP

Posted on 1997-03-14
1
200 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 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