PopupMenu state Problem !

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
ChovaAsked:
Who is Participating?
 
boabyteConnect With a Mentor Commented:
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
 
mirek071497Commented:
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
 
ChovaAuthor Commented:
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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
iainmageeCommented:
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
 
iainmageeCommented:
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
 
ChovaAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.