Has anyone had success with using the Tray object on a WM5 device?  Is it even 
supported?  

I would like to load an image in the tray so that when it's clicked on, it 
shows/maximizes the forms again (after using the little X to minimize).  MyApp 
is declared as a global and I know that the FindWindow works (have used it 
before).  The problem is the imageIndex = 0 after adding the image.  The image 
is at the location specified.

Thanks in advance!

In Form1_Load
AddObject "NSBasic.win32.Tray", "MyTray"
imageIndex = MyTray.AddImage("\FIDO_1.0\Forms.bmp")
MyTray.Image = imageIndex

Sub MyTray_Click
   Dim wnd
   wnd=API.FindWindow(MyApp)

   If wnd > 0 Then      
      API.ShowWindow wnd,1
   End If   
End Sub

In Output_Close
MyTray.RemoveImage(MyTray.Image)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to nsb-ce@googlegroups.com
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to