system tray

25/07/2003 - 13:49 por hernan perez tonini | Informe spam
hola grupo

Quisiera saber si alguin sabe la forma de poner un icono
en la sistem tray pero sin usar ningun active x, osea
usando la API. Me fije en http://www.news2news.com/vfp/
pero si bien hay un ejemplo en el sitio hay que pagar
para verlo.

desde ya muchas gracias
hernan perez tonini
buenos aires argentina

Preguntas similare

Leer las respuestas

#1 Esparta Palma
25/07/2003 - 16:52 | Informe spam
Con VFP8 ya viene incluida esa capacidad

Apoya a Visual FoxPro usándolo legalmente
ž,ø€º°`°º€ø,žž,ø€º°`°º€ø,žž,ø€º°`°º€ø,žž,ø€º°`°º
Espartaco Palma Martínez
SysOp PortalFox ( http://www.PortalFox.com )
email:
Acapulco, Guerrero. México


hernan perez tonini wrote:

hola grupo

Quisiera saber si alguin sabe la forma de poner un icono
en la sistem tray pero sin usar ningun active x, osea
usando la API. Me fije en http://www.news2news.com/vfp/
pero si bien hay un ejemplo en el sitio hay que pagar
para verlo.

desde ya muchas gracias
hernan perez tonini
buenos aires argentina
Respuesta Responder a este mensaje
#2 hernan perez tonini
26/07/2003 - 10:01 | Informe spam
Esparta por ahora estoy con vfp 6 buscando un poco mas
encontre algo pero no se como seguir el codigo que
encontre el cual esta en VB y es el siguiente:

Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias
_
"Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As _
NOTIFYICONDATA) As Long

Public Type NOTIFYICONDATA
cbSize As Long
hwnd As Long
uID As Long
uFlags As Long
uCallbackMessage As Long
hIcon As Long
szTip As String * 64
End Type

Public Const NIM_ADD = &H0
Public Const NIM_MODIFY = &H1
Public Const NIM_DELETE = &H2
Public Const NIF_MESSAGE = &H1
Public Const NIF_ICON = &H2
Public Const NIF_TIP = &H4

'Make your own constant, e.g.:
Public Const NIF_DOALL = NIF_MESSAGE Or NIF_ICON Or
NIF_TIP

Public Const WM_MOUSEMOVE = &H200
Public Const WM_LBUTTONDBLCLK = &H203
Public Const WM_LBUTTONDOWN = &H201
Public Const WM_RBUTTONDOWN = &H204

2) Add a form to the project, and add the following code:

Public Sub CreateIcon()
Dim Tic As NOTIFYICONDATA
Tic.cbSize = Len(Tic)
Tic.hwnd = Picture1.hwnd
Tic.uID = 1&
Tic.uFlags = NIF_DOALL
Tic.uCallbackMessage = WM_MOUSEMOVE
Tic.hIcon = Picture1.Picture
Tic.szTip = "Visual Basic Demo Project" & Chr$(0)
erg = Shell_NotifyIcon(NIM_ADD, Tic)
End Sub

Public Sub DeleteIcon()
Dim Tic As NOTIFYICONDATA
Tic.cbSize = Len(Tic)
Tic.hwnd = Picture1.hwnd
Tic.uID = 1&
erg = Shell_NotifyIcon(NIM_DELETE, Tic)
End Sub

si alguien pude pasarlo a VFp lo agradeceria
Desde ya muchas gracias
hernan perez tonini
buenos aires argentina
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida