Solved

ONPOPUP

Posted on 1997-03-14
1
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

690 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