Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Hello:
>
> I am trying to hide a foxpro application upon startup. I am then using a tray icon to unhide it. The problem is that the form won't hide on startup. I have found an article on MSDN article (Q136185) stating "
>
>After a form or formset is hidden, Visual FoxPro activates the last active object. If no objects were active before the formset became active, the main Visual FoxPro window becomes active. Consequently, if you try to hide the main FoxPro window or set its Visible property to false when there were no prior active objects, Visual FoxPro has no place to go. As a result, the Hide method and Visible property for _Screen are disabled.
>
>"
>
> I have a button that simply sets _screen.visible to .f. and this hides the form. I want the form hidden on startup, though. Is there a way around this? Is this a limitation of Foxpro? Obviously there are other applications that start hidden with just a system tray icon. Is this possible in VFP. I'm using 6.0 btw. Thanks in advance.
>
>
>
> -Josh
HI Josh
I have a simular problem... I am using bbSystray.Fll, are you using the same? I minimize my Foxpro app by using "Thisform.WindowState = 0" However, I cannot Maximize the application when I double click on the icon in the Systray. Hopefully, I was able to help youa bit, and maybe you can help me! hehe
Rick
P.S. Here is the code snippet:
SET LIBRARY TO(LibraryLoc + "bbsystray.fll")
IF AddSysTrayIcon(1,"noproblem.ico", ;
"ATM Checker","THISFORM.WindowState = 0", ;
"THISFORM.WindowState = 1",.T.)
THISFORM.WindowState = 1
ELSE
THISFORM.WindowState = 0
ENDIF
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement