Tim
I think I've tried something similar, is this a shortcut menu, because if so, I'm not sure if you can have shortcut menus running from the SysTray, because Fox is the Menu source, and you want the menu from the Taskbar.
But, that's only an asumption.
Kev
>Hi,
>
>I have an application that runs invisible (with _VFP.visible=.f.
>and SCREEN=OFF in config.fpw)
>
>The program uses systray.ocx to show an icon on the task tray.
>When I click on the task tray I want a menu.
>
>SO I call the following code from the click event on the systray
>control:
>
>
>*** ActiveX Control Event ***
>LPARAMETERS button
>SET STEP ON
>IF button=2
>
> DEFINE POPUP Smenu STYLE 'N'
> DEFINE BAR 1 OF SMenu PROMPT "Quit"
> ON SELECTION BAR 1 OF SMenu MESSAGEBOX("OK")
> ACTIVATE POPUP SMenu
>
>ENDIF
>
>
>
>So the question is: How can I get only the menu to appear when the application
>is running completely invisible?
>
>
>thanks