?
Solved

ONPOPUP

Posted on 1997-03-14
1
Medium Priority
?
209 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 100 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

762 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