First you set up your $menu. Then it is done something like this... I have a script that does this when a user Click's on a NotifyIcon, so within the sub ni_Click there is:

my ( $nipx, $nipy ) = Win32::GUI::GetCursorPos ();
$Window->TrackPopupMenu( $menu -> {'PopUpMenu'}, $nipx, $nipy );


HTH,
Pete


> -----Original Message-----
> From: Bjoern Hoehrmann [mailto:derhoermi@gmx.net]
> Sent: Saturday, July 06, 2002 05:33
> To: perl-win32-gui-users@lists.sourceforge.net
> Subject: [perl-win32-gui-users] Context Menus
>
>
> Hi,
>
> I want to create a context menu, but I am not sure if Win32::GUI
> supports them. Basically, as far as I understand it, the code is
> already in the module (calls to CreatePopupMenu, TrackPopupMenu,
> InsertMenuItem), but I don't know how they fit together. Hints?
>
> regards.
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> We have stuff for geeks like you.
> http://thinkgeek.com/sf
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> Perl-Win32-GUI-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>