Hi


I need to catch the event MouseDown and MouseUp on a MainMenu but this
classe haven´t those methods.

How can i write them??

Thank You

Re: MyMainMenu - Urgent by Pete

Pete
Mon Sep 08 15:05:53 CDT 2003

Hi,

Andreia Artifice wrote:
> I need to catch the event MouseDown and MouseUp on a MainMenu but this
> classe haven´t those methods.

I thought those events were on the individual menu items? I could be wrong
though.

Some things you could try:

1) Look for an existing .NET menu control (there are many) that exposes this
functionality and use/alter it.

2) Derive from MainMenu and override WndProc (not sure if it'll get the
windows messages for mouse down, etc though)

3) Derive from MainMenu and implement IMessageFilter to get the windows
messages. Be sure to only handle those over the menu itself.

-- Pete



Re: MyMainMenu - Urgent by Magnus

Magnus
Tue Sep 09 06:07:21 CDT 2003

You can start by correcting your system time/date. After that it's a piece
of cake catching those events.

"Andreia Artifice" <aff@mega.ist.utl.pt> wrote in message
news:uLciZ0jdDHA.1620@TK2MSFTNGP12.phx.gbl...
> Hi
>
>
> I need to catch the event MouseDown and MouseUp on a MainMenu but this
> classe haven´t those methods.
>
> How can i write them??
>
> Thank You
>
>



Re: MyMainMenu - Urgent by Bob

Bob
Wed Sep 10 14:31:38 CDT 2003

Hopefully someone with access to the server will delete your post so that we
don't have to look at it for the next 25 years.

--
Bob Powell [MVP]
C#, System.Drawing

ANNOUNCING: Well Formed.
The monthy electronic magazine for
Windows Forms and GDI+ engineers
http://www.bobpowell.net/wellformed.htm

Check out the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm


"Andreia Artifice" <aff@mega.ist.utl.pt> wrote in message
news:uLciZ0jdDHA.1620@TK2MSFTNGP12.phx.gbl...
> Hi
>
>
> I need to catch the event MouseDown and MouseUp on a MainMenu but this
> classe haven´t those methods.
>
> How can i write them??
>
> Thank You
>
>