Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Systray sample problem
Message
From
07/04/2003 21:03:12
 
 
To
01/04/2003 14:50:55
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00770935
Message ID:
00774966
Views:
60
>The menu does not popup when the icon in the systray is
>clicked/dblclicked/rclicked. I have no problem testing
>the EXE on my Win2K Pro machine.

Interesting. When you run the sample form
DO Form HOME() + "samples\solution\toledo\systray_sample"
does the event name appear in the textbox at the bottom of the form?

If the event name appears, that implies the events are being passed correctly, and the algorithm for displaying the menu is getting confused by Citrix, and the menu is probably being displayed somewhere off the screen. Try docking your taskbar at the top or side of the screen, and see if the menu appears.

When the "systray" class displays the menu, it's actually instantiating a top-level VFP form, making the form invisible, moving it near the systray, and then popping up a normal VFP shortcut menu on that invisble form. The algorithm for deciding where to place the invisible form uses WinAPI calls to find the location of the taskbar and the current location of the mouse pointer. One of these calls may be giving unexpected values when using Citrix. If you have time and curiousity, you might try stepping through the SHOWMENU method on this class to find out what loTempForm.Left and loTempForm.Top are being set to.

Jumping back two paragraphs: If the event name does NOT appear in the textbox, then the problem is with Citrix not passing systray events correctly, and I'm not sure I can help there. :)

-Tom

[This post is provided AS-IS, with no warranties, and confers no rights.]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform