wmsoft Posted February 15, 2012 Report Share Posted February 15, 2012 Boa Noite, Eu tenho um pequeno aplicativo que fica rodando no Tray, fiz uma função que testa se o Servidor está ON/OFF tem como mudar o icone quando o servidor estiver OFF em tempo de execução? Pelo que pude perceber o Tray exibe o Icone do EXE, dai não sei se existe alguma forma de modificar em tempo real. Washington Guimarães FWH 906, xHarbour 1.2.1, PelleC, xDev, SQLLIB Editado por - wmsoft on 16/02/2012 08:04:23 Quote Link to comment Share on other sites More sharing options...
wmsoft Posted February 15, 2012 Author Report Share Posted February 15, 2012 Boa Noite, Eu tenho um pequeno aplicativo que fica rodando no Tray, fiz uma função que testa se o Servidor está ON/OFF tem como mudar o icone quando o servidor estiver OFF em tempo de execução? Pelo que pude perceber o Tray exibe o Icone do EXE, dai não sei se existe alguma forma de modificar em tempo real. Washington Guimarães FWH 906, xHarbour 1.2.1, PelleC, xDev, SQLLIB Editado por - wmsoft on 16/02/2012 08:04:23 Quote Link to comment Share on other sites More sharing options...
vagner Posted February 16, 2012 Report Share Posted February 16, 2012 Olá, http://www.fivewin.com.br/exibedicas.asp?id=523 oIcon1 := Seu Novo Objeto Icone oTray:oIcon := oIcon1 oTray:Refresh(oIcon1) SysRefresh() Veja o exemplo nesse programa que eu montei, Transfer.Prg Vagner Wirts "Ele não sabendo que era impossÃvel, foi lá e fez" Quote Link to comment Share on other sites More sharing options...
wmsoft Posted February 16, 2012 Author Report Share Posted February 16, 2012 Grande Vagner, Vou tentar conferir aqui, a princÃpio me deu esse erro: Path and name: C:\Electra7\eCollect.EXE (32 bits) Size: 3,336,192 bytes Time from start: 0 hours 0 mins 3 secs Error occurred at: 16/02/2012, 08:52:53 Error description: Error BASE/1004 Class: 'CHARACTER' has no exported method: HICON Args: [ 1] = C .\bitmaps\red.ico Washington Guimarães FWH 906, xHarbour 1.2.1, PelleC, xDev, SQLLIB Quote Link to comment Share on other sites More sharing options...
wmsoft Posted February 16, 2012 Author Report Share Posted February 16, 2012 Resolvido meu amigo, olhei e và que na declaração do Icon eu tinha digitado algo errado, mas 100% valeu. Washington Guimarães FWH 906, xHarbour 1.2.1, PelleC, xDev, SQLLIB Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.