Solved

PopupMenu state Problem !

Posted on 1997-08-09
6
360 Views
Last Modified: 2010-04-04
Hi,
When a popupmenu is displaying, the system display the popupmenu as a form, but this state is Modal.
I research a methode to show a popupmenu in normal state.
it's just for get the mouse event when the cursor is not
in the popupmenu windows
0
Comment
Question by:Chova
6 Comments
 
LVL 3

Expert Comment

by:mirek071497
Comment Utility
I don't understand what you need. Please clarify.
Do You need Popup whis is not modal ?
Popup must be modal but mayby you need another component.
0
 

Author Comment

by:Chova
Comment Utility
Ok,
In fact, i need a popupmenu (Or an equivalent component)
which is not modal.
Because i want use all the mouse message when a poupmenu is
displaying.

Thanks
0
 

Expert Comment

by:iainmagee
Comment Utility
But a popup menu isn't modal. It doesn't restrict mouse input to within itself.

Do you mean you want your application to trap mouse messages   in windows other than the popup, while it is displayed? I don't see how this is possible because the popup kills itself as soon as it loses the focus?

Can you explain why you need this more fully?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Expert Comment

by:iainmagee
Comment Utility
But a popup menu isn't modal. It doesn't restrict mouse input to within itself.

Do you mean you want your application to trap mouse messages   in windows other than the popup, while it is displayed? I don't see how this is possible because the popup kills itself as soon as it loses the focus?

Can you explain why you need this more fully?
0
 

Author Comment

by:Chova
Comment Utility
Ok, i want to do that, because i try since few month, to do the same menu that Office97's menu .
My way is very simple, i create a button (win97 style) whch show a popupmenu when you click .I use the "Trackpopupmenu" command to show the popupmenu.
This poupmenu is modified in Ownerdraw state. (is for realize,
a menutitem with icon).
When the poupmenu is showing, i don't arrive to get the mouse event if my cursor is not on the popupWindow.
You understand Now ?
0
 

Accepted Solution

by:
boabyte earned 200 total points
Comment Utility
Why dont you just use a panel to make a FAKE popupmenu.
This way you will still have total control over mouse inputs.
Just change the panels visible property to enable / disable
menu.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now