Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting Foxpro in systray.....a 'HIDE WINDOW SCREEN Question
Message
From
07/10/1998 07:45:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Putting Foxpro in systray.....a 'HIDE WINDOW SCREEN Question
Miscellaneous
Thread ID:
00144512
Message ID:
00144512
Views:
194
Hi...
I have sucessfully put my VFP 6.0 app in the system tray
using code I found here.

It's a server so it executes a sequence of events
on a timer...

Using the code I put the thing in the tray but the application stays visible.

So I just do a
HIDE WINDOW SCREEN

Command to get rid of the screen...

But if I do this the program just closes down...

I want it to keep executing....The timer...

SO I tried...
thisform.minimized=.t.
HIDE WINDOW SCREEN
read events

DO WHILE thisform.minimized=.t.


ENDDO

Then when I click on the icon in the tray
It calls a function that does:
***********************************
SHOW WINDOW SCREEN
if DelSysTrayIcon(1)
thisform.minimized=.f.
THISFORM.GOTOFOCUS()
endif

**********************************

This works fine but the program doesn't execut the timer
because the loop does nothing...

I tired various things but no luck

So the Million dollar question is:
What do I put in here:

DO WHILE thisform.minimized=.t.


ENDDO

So that the program executes the timer on the screen...
When the screen is hidden....

Any Ideas?
Next
Reply
Map
View

Click here to load this message in the networking platform